Class NotAExpectation

Description

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

Will succeed if the type does not match.

Located in /expectation.php (line 816)

SimpleExpectation
   |
   --IsAExpectation
      |
      --NotAExpectation
Method Summary
 NotAExpectation __construct (string $type, [string $message = '%s'])
 boolean test (string $compare)
 string testMessage (mixed $compare)
Variables

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$dumper
Methods
Constructor __construct (line 825)

Sets the type to compare with.

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

Redefinition of:
IsAExpectation::__construct()
Sets the type to compare with.
test (line 836)

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

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

Redefinition of:
IsAExpectation::test()
Tests the expectation. True if the type or class matches the string value.
testMessage (line 847)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From IsAExpectation

 IsAExpectation::__construct()
 IsAExpectation::canonicalType()
 IsAExpectation::getType()
 IsAExpectation::test()
 IsAExpectation::testMessage()

Inherited From SimpleExpectation

 SimpleExpectation::__construct()
 SimpleExpectation::getDumper()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()

Documentation generated on Sun, 31 Oct 2010 16:31:28 -0500 by phpDocumentor 1.4.3