Class ReferenceExpectation

Description

Test for reference.

Located in /expectation.php (line 449)

SimpleExpectation
   |
   --ReferenceExpectation
Variable Summary
 mixed $_value
Method Summary
 ReferenceExpectation ReferenceExpectation ( &$value, [string $message = '%s'], mixed $value)
 boolean test ( &$compare, mixed $compare)
 string testMessage (mixed $compare)
 void _getValue ()
Variables
mixed $_value (line 450)

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor ReferenceExpectation (line 458)

Sets the reference value to compare against.

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

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

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

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

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.
_getValue (line 490)
void _getValue ()

Inherited Methods

Inherited From SimpleExpectation

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

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