src/Core/Tolerance.php
public function isTolerable($observed, $expected)
    {
        $diff = $this->getDifference($observed, $expected);

        if ($diff > $this->tolerance) {
            return false;
        }

        return true;
    }
public function isTolerable($observed, $expected)
    {
        $diff = $this->getDifference($observed, $expected);

        if ($diff > $this->tolerance) {
            return false;
        }

        return true;
    }
public function isTolerable ( $ observed , $ expected ) { $ diff = $ this -> getDifference ( $ observed , $ expected ) ; if ( $ diff > $ this -> tolerance ) { return false ; } return true ; }
Test if the observed and expected values are within the accepted tolerance

@param float $observed
The observed value
@param float $expected
The expected value
@return boolean
Test if the observed and expected values are within the accepted tolerance