Class NotAExpectation

Description

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

Will succeed if the type does not match.

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

SimpleExpectation
   |
   --IsAExpectation
      |
      --NotAExpectation
Variable Summary
 mixed $_type
Method Summary
 NotAExpectation NotAExpectation (string $type)
 boolean test (string $compare)
 string testMessage (mixed $compare)
Variables
mixed $_type (line 464)

Redefinition of:
IsAExpectation::$_type

Inherited Variables

Inherited from SimpleExpectation

SimpleExpectation::$_dumper
Methods
Constructor NotAExpectation (line 471)

Sets the type to compare with.

  • access: public
NotAExpectation NotAExpectation (string $type)
  • string $type: Type or class name.
test (line 482)

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

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::IsAExpectation()
 IsAExpectation::getType()
 IsAExpectation::test()
 IsAExpectation::testMessage()
 IsAExpectation::_canonicalType()

Inherited From SimpleExpectation

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

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