Class NotEqualExpectation

Description

Test for inequality.

Located in /expectation.php (line 279)

SimpleExpectation
   |
   --EqualExpectation
      |
      --NotEqualExpectation
Method Summary
 NotEqualExpectation __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 287)

Sets the value to compare against.

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

Redefinition of:
EqualExpectation::__construct()
Sets the value to compare against.
test (line 298)

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

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::__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