Class NotEqualExpectation

Description

Test for inequality.

Located in /expectation.php (line 280)

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

Sets the value to compare against.

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

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:
EqualExpectation::test()
Tests the expectation. True if it matches the held value.
testMessage (line 310)

Returns a human readable test message.

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

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

Inherited Methods

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