Class EqualExpectation

Description

Test for equality.

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

SimpleExpectation
   |
   --EqualExpectation
Direct descendents
Class Description
 class NotEqualExpectation Test for inequality.
 class IdenticalExpectation Test for identity.
Variable Summary
 mixed $_value
Method Summary
 EqualExpectation EqualExpectation (mixed $value)
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
 mixed _getValue ()
Variables
mixed $_value (line 70)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
Methods
Constructor EqualExpectation (line 77)

Sets the value to compare against.

  • access: public
EqualExpectation EqualExpectation (mixed $value)
  • mixed $value: Test value to match.
test (line 89)

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

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

Redefinition of:
SimpleExpectation::test()
Tests the expectation. True if correct.

Redefined in descendants as:
testMessage (line 100)

Returns a human readable test message.

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

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

Redefined in descendants as:
_getValue (line 114)

Accessor for comparison value.

  • return: Held value to compare with.
  • access: protected
mixed _getValue ()

Inherited Methods

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Fri, 3 Dec 2004 12:26:37 +0000 by phpDocumentor 1.3.0RC3