Class NotIdenticalExpectation

Description

Test for non-identity.

Located in /expectation.php (line 570)

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

Inherited Variables

Inherited from SimpleExpectation

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

Sets the value to compare against.

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

Redefinition of:
IdenticalExpectation::__construct()
Sets the value to compare against.
test (line 589)

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

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::__construct()
 IdenticalExpectation::test()
 IdenticalExpectation::testMessage()

Inherited From EqualExpectation

 EqualExpectation::__construct()
 EqualExpectation::getValue()
 EqualExpectation::test()
 EqualExpectation::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