Abstract Class SimpleExpectation

Description

Assertion that can display failure information.

Also includes various helper methods.

  • abstract:

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


	
			
Direct descendents
Class Description
 class WildcardExpectation A wildcard expectation always matches.
 class ParametersExpectation Parameter comparison assertion.
 class EqualExpectation Test for equality.
 class WantedPatternExpectation Test for a pattern using Perl regex rules.
 class IsAExpectation Tests either type or class name if it's an object.
 class MethodExistsExpectation Tests for existance of a method in an object
Variable Summary
 mixed $_dumper
Method Summary
 SimpleExpectation SimpleExpectation ()
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
mixed $_dumper (line 24)
Methods
Constructor SimpleExpectation (line 29)

Creates a dumper for displaying values.

SimpleExpectation SimpleExpectation ()
test (line 40)

Tests the expectation. True if correct.

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

Redefined in descendants as:
testMessage (line 51)

Returns a human readable test message.

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

Redefined in descendants as:
_getDumper (line 59)

Accessor for the dumper.

  • return: Current value dumper.
  • access: protected
SimpleDumper &_getDumper ()

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