src/main/php/Verification.php
protected function evaluateWithPhpUnit($constraint, $received, string $description): bool
    {
        if ($constraint instanceof \PHPUnit\Framework\Constraint\Constraint) {
            return $constraint->evaluate($received, $description);
        }

        return (new \PHPUnit\Framework\Constraint\IsEqual($constraint))
                ->evaluate($received, $description);
    }
protected function evaluateWithPhpUnit($constraint, $received, string $description): bool
    {
        if ($constraint instanceof \PHPUnit\Framework\Constraint\Constraint) {
            return $constraint->evaluate($received, $description);
        }

        return (new \PHPUnit\Framework\Constraint\IsEqual($constraint))
                ->evaluate($received, $description);
    }
protected function evaluateWithPhpUnit ( $ constraint , $ received , string $ description ) : bool { if ( $ constraint instanceof \ PHPUnit \ Framework \ Constraint \ Constraint ) { return $ constraint -> evaluate ( $ received , $ description ) ; } return ( new \ PHPUnit \ Framework \ Constraint \ IsEqual ( $ constraint ) ) -> evaluate ( $ received , $ description ) ; }
evaluates given constraint using PHPUnit

If given constraint is not a instance of \PHPUnit\Framework\Constraint\Constraint it
will be wrapped with \PHPUnit\Framework\Constraint\IsEqual.

@param   mixed|\PHPUnit\Framework\Constraint\Constraint  $constraint  constraint for argument
@param   mixed                                $received    actually received argument
@param   string                               $description  description for invocation in case of error
@return  bool
evaluates given constraint using PHPUnit