Skip to content

Commit 84c984e

Browse files
committed
Fix strict comparison in mock builder causing tests to fail
1 parent e73bed0 commit 84c984e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Client/TestDoubleClientBuilder.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ private function createHandler() : MockObject
146146
return (bool) $expected->evaluate($request, '', true);
147147
}
148148

149-
return $expected === $request;
149+
$constraint = new \PHPUnit\Framework\Constraint\IsEqual($expected);
150+
151+
return (bool) $constraint->evaluate($request, '', true);
150152
}));
151153
}
152154

0 commit comments

Comments
 (0)