Class IdenticalExpectation

Description

Test for identity.

Located in /expectation.php (line 500)

SimpleExpectation
   |
   --EqualExpectation
      |
      --IdenticalExpectation
Direct descendents
Class Description
 class NotIdenticalExpectation Test for non-identity.
Method Summary
 IdenticalExpectation IdenticalExpectation (mixed $value, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
Methods
Constructor IdenticalExpectation (line 508)

Sets the value to compare against.

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

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 530)

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::EqualExpectation()
 EqualExpectation::test()
 EqualExpectation::testMessage()
 EqualExpectation::_getValue()

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Sun, 04 May 2008 09:21:35 -0500 by phpDocumentor 1.3.0