Class IdenticalExpectation

Description

Test for identity.

Located in /expectation.php (line 522)

SimpleExpectation
   |
   --EqualExpectation
      |
      --IdenticalExpectation
Direct descendents
Class Description
 class NotIdenticalExpectation Test for non-identity.
 class MemberExpectation Compares an object member's value even if private.
Method Summary
 IdenticalExpectation __construct (mixed $value, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$dumper
Methods
Constructor __construct (line 530)

Sets the value to compare against.

  • access: public
IdenticalExpectation __construct (mixed $value, [string $message = '%s'])
  • mixed $value: Test value to match.
  • string $message: Customised message on failure.

Redefinition of:
EqualExpectation::__construct()
Sets the value to compare against.

Redefined in descendants as:
test (line 541)

Tests the expectation. True if it exactly matches the held value.

  • return: True if correct.
  • access: public
boolean test (mixed $compare)
  • mixed $compare: Comparison value.

Redefinition of:
EqualExpectation::test()
Tests the expectation. True if it matches the held value.

Redefined in descendants as:
testMessage (line 552)

Returns a human readable test message.

  • return: Description of success or failure.
  • access: public
string testMessage (mixed $compare)
  • mixed $compare: Comparison value.

Redefinition of:
EqualExpectation::testMessage()
Returns a human readable test message.

Redefined in descendants as:

Inherited Methods

Inherited From EqualExpectation

 EqualExpectation::__construct()
 EqualExpectation::getValue()
 EqualExpectation::test()
 EqualExpectation::testMessage()

Inherited From SimpleExpectation

 SimpleExpectation::__construct()
 SimpleExpectation::getDumper()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()

Documentation generated on Sun, 31 Oct 2010 16:31:27 -0500 by phpDocumentor 1.4.3