Class IsAExpectation

Description

Tests either type or class name if it's an object.

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

SimpleExpectation
   |
   --IsAExpectation
Direct descendents
Class Description
 class NotAExpectation Tests either type or class name if it's an object.
Variable Summary
 mixed $_type
Method Summary
 IsAExpectation IsAExpectation (string $type)
 string getType ()
 boolean test (string $compare)
 string testMessage (mixed $compare)
 string _canonicalType (string $type)
Variables
mixed $_type (line 388)

Redefined in descendants as:

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
Methods
Constructor IsAExpectation (line 395)

Sets the type to compare with.

  • access: public
IsAExpectation IsAExpectation (string $type)
  • string $type: Type or class name.
getType (line 405)

Accessor for type to check against.

  • return: Type or class name.
  • access: protected
string getType ()
test (line 416)

Tests the expectation. True if the type or class matches the string value.

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

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

Redefined in descendants as:
testMessage (line 450)

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:
_canonicalType (line 430)

Coerces type name into a gettype() match.

  • return: Simpler type.
  • access: private
string _canonicalType (string $type)
  • string $type: User type.

Inherited Methods

Inherited From SimpleExpectation

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

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