You are here

interface PHPUnit_Framework_MockObject_Invokable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php \PHPUnit_Framework_MockObject_Invokable

Interface for classes which can be invoked.

The invocation will be taken from a mock object and passed to an object of this class.

@since Interface available since Release 1.0.0

Hierarchy

Expanded class hierarchy of PHPUnit_Framework_MockObject_Invokable

All classes that implement PHPUnit_Framework_MockObject_Invokable

File

vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Invokable.php, line 19

View source
interface PHPUnit_Framework_MockObject_Invokable extends PHPUnit_Framework_MockObject_Verifiable {

  /**
   * Invokes the invocation object $invocation so that it can be checked for
   * expectations or matched against stubs.
   *
   * @param  PHPUnit_Framework_MockObject_Invocation $invocation
   *                                                             The invocation object passed from mock object.
   * @return object
   */
  public function invoke(PHPUnit_Framework_MockObject_Invocation $invocation);

  /**
   * Checks if the invocation matches.
   *
   * @param  PHPUnit_Framework_MockObject_Invocation $invocation
   *                                                             The invocation object passed from mock object.
   * @return bool
   */
  public function matches(PHPUnit_Framework_MockObject_Invocation $invocation);

}

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_MockObject_Invokable::invoke public function Invokes the invocation object $invocation so that it can be checked for expectations or matched against stubs. 1
PHPUnit_Framework_MockObject_Invokable::matches public function Checks if the invocation matches. 1
PHPUnit_Framework_MockObject_Verifiable::verify public function Verifies that the current expectation is valid. If everything is OK the code should just return, if not it must throw an exception. 9