Stub.php 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Codeception\Util;
  3. use Codeception\Lib\Notification;
  4. use Codeception\Stub\Expected;
  5. class Stub extends \Codeception\Stub
  6. {
  7. public static function never($params = null)
  8. {
  9. Notification::deprecate("Stub::never is deprecated in favor of \Codeception\Stub\Expected::never");
  10. return Expected::never($params);
  11. }
  12. public static function once($params = null)
  13. {
  14. Notification::deprecate("Stub::once is deprecated in favor of \Codeception\Stub\Expected::once");
  15. return Expected::once($params);
  16. }
  17. public static function atLeastOnce($params = null)
  18. {
  19. Notification::deprecate("Stub::atLeastOnce is deprecated in favor of \Codeception\Stub\Expected::atLeastOnce");
  20. return Expected::atLeastOnce($params);
  21. }
  22. public static function exactly($count, $params = null)
  23. {
  24. Notification::deprecate("Stub::exactly is deprecated in favor of \Codeception\Stub\Expected::exactly");
  25. return Expected::exactly($count, $params);
  26. }
  27. }