interface PHPUnit_Framework_MockObject_Builder_Identity

Builder interface for unique identifiers.

Defines the interface for recording unique identifiers. The identifiers can be used to define the invocation order of expectations. The expectation is recorded using id() and then defined in order using PHPUnit_Framework_MockObject_Builder_Match::after().

@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_Builder_Identity

All classes that implement PHPUnit_Framework_MockObject_Builder_Identity

File

drupal/core/vendor/phpunit/phpunit-mock-objects/PHPUnit/Framework/MockObject/Builder/Identity.php, line 61

View source
interface PHPUnit_Framework_MockObject_Builder_Identity {

  /**
   * Sets the identification of the expectation to $id.
   *
   * @note The identifier is unique per mock object.
   * @param string $id Unique identifiation of expectation.
   */
  public function id($id);

}

Members

Namesort descending Modifiers Type Description Overrides
PHPUnit_Framework_MockObject_Builder_Identity::id public function Sets the identification of the expectation to $id. 1