Verifiable.php 672 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. use PHPUnit\Framework\ExpectationFailedException;
  11. /**
  12. * Interface for classes which must verify a given expectation.
  13. */
  14. interface PHPUnit_Framework_MockObject_Verifiable
  15. {
  16. /**
  17. * Verifies that the current expectation is valid. If everything is OK the
  18. * code should just return, if not it must throw an exception.
  19. *
  20. * @throws ExpectationFailedException
  21. */
  22. public function verify();
  23. }