WithinMarginExpectationTest for being within a range.
Located in /expectation.php (line 328)
SimpleExpectation | --WithinMarginExpectation
| Class | Description |
|---|---|
OutsideMarginExpectation
|
Test for being outside of a range. |
WithinMarginExpectation
WithinMarginExpectation
(mixed $value, mixed $margin, [string $message = '%s'])
mixed
$_lower
(line 330)
mixed
$_upper
(line 329)
Inherited from SimpleExpectation
SimpleExpectation::$_dumper
SimpleExpectation::$_message
Sets the value to compare against and the fuzziness of the match. Used for comparing floating point values.
Tests the expectation. True if it matches the held value.
Returns a human readable test message.
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