src/main/php/Verification.php
private function predicateFor($constraint): \bovigo\assert\predicate\Predicate
    {
        if ($constraint instanceof \PHPUnit\Framework\Constraint\Constraint) {
            return new \bovigo\assert\phpunit\ConstraintAdapter($constraint);
        }

        if ($constraint instanceof \bovigo\assert\predicate\Predicate) {
            return $constraint;
        }

        return \bovigo\assert\predicate\equals($constraint);
    }
private function predicateFor($constraint): \bovigo\assert\predicate\Predicate
    {
        if ($constraint instanceof \PHPUnit\Framework\Constraint\Constraint) {
            return new \bovigo\assert\phpunit\ConstraintAdapter($constraint);
        }

        if ($constraint instanceof \bovigo\assert\predicate\Predicate) {
            return $constraint;
        }

        return \bovigo\assert\predicate\equals($constraint);
    }
private function predicateFor ( $ constraint ) : \ bovigo \ assert \ predicate \ Predicate { if ( $ constraint instanceof \ PHPUnit \ Framework \ Constraint \ Constraint ) { return new \ bovigo \ assert \ phpunit \ ConstraintAdapter ( $ constraint ) ; } if ( $ constraint instanceof \ bovigo \ assert \ predicate \ Predicate ) { return $ constraint ; } return \ bovigo \ assert \ predicate \ equals ( $ constraint ) ; }
creates precicate for given constraint

@param   mixed|\bovigo\assert\predicate\Predicate|\PHPUnit\Framework\Constraint\Constraint  $constraint
@return  \bovigo\assert\predicate\Predicate
creates precicate for given constraint