Class IdenticalExpectation

Description

Test for identity.

Located in /libraries/pear/simpletest/expectation.php (line 171)

SimpleExpectation
   |
   --EqualExpectation
      |
      --IdenticalExpectation
Direct descendents
Class Description
 class NotIdenticalExpectation Test for non-identity.
Method Summary
 IdenticalExpectation IdenticalExpectation (mixed $value)
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
Methods
Constructor IdenticalExpectation (line 178)

Sets the value to compare against.

  • access: public
IdenticalExpectation IdenticalExpectation (mixed $value)
  • mixed $value: Test value to match.
test (line 189)

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

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::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Thu, 20 Jan 2005 17:09:50 +0000 by phpDocumentor 1.3.0RC3