interface 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.

@package PHPUnit_MockObject @author Sebastian Bergmann <sb@sebastian-bergmann.de> @copyright 2010-2013 Sebastian Bergmann <sb@sebastian-bergmann.de> @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License @version Release: @package_version@ @link http://github.com/sebastianbergmann/phpunit-mock-objects @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

drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Invokable.php, line 59

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 boolean
   */
  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. 7