We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57584c3 commit 6053222Copy full SHA for 6053222
tests/Framework/ConstraintTest.php
@@ -2882,7 +2882,12 @@ public function testConstraintArrayContainsCheckForObjectIdentity()
2882
// Default case.
2883
$constraint = new PHPUnit_Framework_Constraint_TraversableContains('foo');
2884
2885
- $this->assertTrue($constraint->evaluate(array(0), '', true));
+ if (PHP_VERSION_ID >= 80000) {
2886
+ // see https://wiki.php.net/rfc/string_to_number_comparison
2887
+ $this->assertFalse($constraint->evaluate(array(0), '', true));
2888
+ } else {
2889
+ $this->assertTrue($constraint->evaluate(array(0), '', true));
2890
+ }
2891
$this->assertTrue($constraint->evaluate(array(true), '', true));
2892
}
2893
0 commit comments