src/MatcherEvaluator.php
public function evaluate($actual)
    {
        $matcherResult = $this->matcher->match($actual);
        $expected = $this->negated ? false : true;

        $result = $matcherResult === $expected;

        return new Result($actual, $this->negated, $this->matcher, $result);
    }
public function evaluate($actual)
    {
        $matcherResult = $this->matcher->match($actual);
        $expected = $this->negated ? false : true;

        $result = $matcherResult === $expected;

        return new Result($actual, $this->negated, $this->matcher, $result);
    }
public function evaluate ( $ actual ) { $ matcherResult = $ this -> matcher -> match ( $ actual ) ; $ expected = $ this -> negated ? false : true ; $ result = $ matcherResult === $ expected ; return new Result ( $ actual , $ this -> negated , $ this -> matcher , $ result ) ; }
Evaluate the value of actual.

@param mixed $actual value of actual

@return \expect\Result
Evaluate the value of actual .