test() public method

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
return boolean True if correct.
Example #1
0
 public function testOutsideFloatingPointMargin()
 {
     $within = new OutsideMarginExpectation(1.0, 0.2);
     $this->assertTrue($within->test(0.7));
     $this->assertFalse($within->test(0.8));
     $this->assertFalse($within->test(1.2));
     $this->assertTrue($within->test(1.3));
 }