Class IsAExpectation

Description

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

Located in /expectation.php (line 733)

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 $message = '%s'])
 boolean test (string $compare)
 string testMessage (mixed $compare)
 string _getType ()
Variables
mixed $_type (line 734)

Redefined in descendants as:

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
SimpleExpectation::$_message
Methods
Constructor IsAExpectation (line 742)

Sets the type to compare with.

  • access: public
IsAExpectation IsAExpectation (string $type, [string $message = '%s'])
  • string $type: Type or class name.
  • string $message: Customised message on failure.
test (line 763)

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

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:
_getType (line 752)

Accessor for type to check against.

  • return: Type or class name.
  • access: protected
string _getType ()

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:35 -0500 by phpDocumentor 1.3.0