Stub.php 805 B

12345678910111213141516171819202122232425
  1. <?php
  2. /*
  3. * This file is part of the phpunit-mock-objects package.
  4. *
  5. * (c) Sebastian Bergmann <sebastian@phpunit.de>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /**
  11. * Builder interface for stubs which are actions replacing an invocation.
  12. */
  13. interface PHPUnit_Framework_MockObject_Builder_Stub extends PHPUnit_Framework_MockObject_Builder_Identity
  14. {
  15. /**
  16. * Stubs the matching method with the stub object $stub. Any invocations of
  17. * the matched method will now be handled by the stub instead.
  18. *
  19. * @param PHPUnit_Framework_MockObject_Stub $stub
  20. *
  21. * @return PHPUnit_Framework_MockObject_Builder_Identity
  22. */
  23. public function will(PHPUnit_Framework_MockObject_Stub $stub);
  24. }