stable

Clone or download

Read-only

PHPUnit unit test suite can fail when played in a random order

Due to a test introduced in 8efe3256013155d2bd2e9c6429aeeeeaa114e8d3, the test suite can fail. A PHP bug exists with simplexml_load_file() when the ability to load external entities has been disabled [0]. Some tests enable/disable the feature resulting in a failure depending on when PsalmCommandLauncherWithIgnoreDirectoryTest is played. Issue can be reproduced by executing the test suite with the random seed 1552981703. Part of request #13038: Introduce static analysis of the PHP codebase with vimeo/psalm [0] https://bugs.php.net/bug.php?id=62577 Change-Id: I310c05eedae00ab9420a657cc320d2f12e770a33

Modified Files

Name
M tests/lib/Psalm/PsalmCommandLauncherWithIgnoreDirectory.php +8 −3 Go to diff View file
M tests/phpunit/tests/Psalm/PsalmCommandLauncherWithIgnoreDirectoryTest.php +2 −2 Go to diff View file