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