You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After #99, there is now a failing test in PHPUnit's own test suite:
$ ./phpunit --filter testConstraintIsEqual2#7
PHPUnit 8.5.29-10-g1f265825a3 #StandWithUkraine
Runtime: PHP 8.1.10 with PCOV 1.0.11
Configuration: /usr/local/src/phpunit/phpunit.xml
F 1 / 1 (100%)
Time: 154 ms, Memory: 14.00 MB
There was 1 failure:
1) PHPUnit\Framework\Constraint\IsEqualTest::testConstraintIsEqual2 with data set #7 (array(true), array('true'), 'Failed asserting that two arr...\n )\n')
/usr/local/src/phpunit/src/Framework/Assert.php:3383
/usr/local/src/phpunit/tests/unit/Framework/Constraint/IsEqualTest.php:72
/usr/local/src/phpunit/src/Framework/TestCase.php:1492
/usr/local/src/phpunit/src/Framework/TestCase.php:1112
/usr/local/src/phpunit/src/Framework/TestResult.php:703
/usr/local/src/phpunit/src/Framework/TestCase.php:838
/usr/local/src/phpunit/src/Framework/TestSuite.php:619
/usr/local/src/phpunit/src/Framework/TestSuite.php:619
/usr/local/src/phpunit/src/Framework/TestSuite.php:619
/usr/local/src/phpunit/src/Framework/TestSuite.php:619
/usr/local/src/phpunit/src/TextUI/TestRunner.php:659
/usr/local/src/phpunit/src/TextUI/Command.php:235
/usr/local/src/phpunit/src/TextUI/Command.php:194
FAILURES!
Tests: 1, Assertions: 1, Failures: 1.
Before #99, PHPUnit's assertEquals() (which uses the code changed in the aforementioned PR) considered ['true'] == [true]. This is in line with PHP's behaviour of the == operator:
Nevermind, there is nothing wrong here. The test in PHPUnit's own test suite relied on wrong behaviour in this library that has now been fixed. This was not obvious to me at first glance because the test in question uses try/catch/return ... $this->fail() instead of expectException*() for verifying that the expected exception is raised.
After #99, there is now a failing test in PHPUnit's own test suite:
Before #99, PHPUnit's
assertEquals()
(which uses the code changed in the aforementioned PR) considered['true'] == [true]
. This is in line with PHP's behaviour of the==
operator:The text was updated successfully, but these errors were encountered: