Class OutsideMarginExpectation

Description

Test for being outside of a range.

Located in /expectation.php (line 403)

SimpleExpectation
   |
   --WithinMarginExpectation
      |
      --OutsideMarginExpectation
Method Summary
 OutsideMarginExpectation OutsideMarginExpectation (mixed $value, mixed $margin, [string $message = '%s'])
 boolean test (mixed $compare)
 string testMessage (mixed $compare)
Variables
Methods
Constructor OutsideMarginExpectation (line 413)

Sets the value to compare against and the fuzziness of the match. Used for comparing floating point values.

  • access: public
OutsideMarginExpectation OutsideMarginExpectation (mixed $value, mixed $margin, [string $message = '%s'])
  • mixed $value: Test value to not match.
  • mixed $margin: Fuzziness of match.
  • string $message: Customised message on failure.
test (line 424)

Tests the expectation. True if it matches the held value.

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

Redefinition of:
WithinMarginExpectation::test()
Tests the expectation. True if it matches the held value.
testMessage (line 435)

Returns a human readable test message.

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

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

Inherited Methods

Inherited From WithinMarginExpectation

 WithinMarginExpectation::WithinMarginExpectation()
 WithinMarginExpectation::test()
 WithinMarginExpectation::testMessage()

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