Class NotIdenticalExpectation

Description

Test for non-identity.

Located in /expectation.php (line 548)

SimpleExpectation
   |
   --EqualExpectation
      |
      --IdenticalExpectation
         |
         --NotIdenticalExpectation
Method Summary
 NotIdenticalExpectation NotIdenticalExpectation (mixed $value, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
Methods
Constructor NotIdenticalExpectation (line 556)

Sets the value to compare against.

  • access: public
NotIdenticalExpectation NotIdenticalExpectation (mixed $value, [string $message = '%s'])
  • mixed $value: Test value to match.
  • string $message: Customised message on failure.
test (line 567)

Tests the expectation. True if it differs from the held value.

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

Redefinition of:
IdenticalExpectation::test()
Tests the expectation. True if it exactly matches the held value.
testMessage (line 578)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From IdenticalExpectation

 IdenticalExpectation::IdenticalExpectation()
 IdenticalExpectation::test()
 IdenticalExpectation::testMessage()

Inherited From EqualExpectation

 EqualExpectation::EqualExpectation()
 EqualExpectation::test()
 EqualExpectation::testMessage()
 EqualExpectation::_getValue()

Inherited From SimpleExpectation

 SimpleExpectation::SimpleExpectation()
 SimpleExpectation::isExpectation()
 SimpleExpectation::overlayMessage()
 SimpleExpectation::test()
 SimpleExpectation::testMessage()
 SimpleExpectation::_getDumper()

Documentation generated on Sun, 04 May 2008 09:21:36 -0500 by phpDocumentor 1.3.0