OutsideMarginExpectation::test PHP 메소드

test() 공개 메소드

Tests the expectation. True if it matches the held value.
public test ( mixed $compare ) : boolean
$compare mixed Comparison value.
리턴 boolean True if correct.
    public function test($compare)
    {
        return !parent::test($compare);
    }

Usage 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));
 }
OutsideMarginExpectation