File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ function tear_down() {
66
77function test_phpcs_out_of_memory_error_handling() {
88 OUTPUT=" $( bin/phpcs -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/) "
9- assert_exit_code 255
9+ # Exit code can't currently be tested as it changes between PHP versions.
10+ # Related feature request upstream: https://github.com/TypedDevs/bashunit/issues/505
11+ # assert_exit_code 255
1012
1113 assert_contains " The PHP_CodeSniffer \" phpcs\" command ran out of memory." " $OUTPUT "
1214 assert_contains " Either raise the \" memory_limit\" of PHP in the php.ini file or raise the memory limit at runtime" " $OUTPUT "
@@ -15,7 +17,9 @@ function test_phpcs_out_of_memory_error_handling() {
1517
1618function test_phpcbf_out_of_memory_error_handling() {
1719 OUTPUT=" $( bin/phpcbf -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/ --suffix=.fixed) "
18- assert_exit_code 139
20+ # Exit code can't currently be tested as it changes between PHP versions.
21+ # Related feature request upstream: https://github.com/TypedDevs/bashunit/issues/505
22+ # assert_exit_code 255
1923
2024 assert_contains " The PHP_CodeSniffer \" phpcbf\" command ran out of memory." " $OUTPUT "
2125 assert_contains " Either raise the \" memory_limit\" of PHP in the php.ini file or raise the memory limit at runtime" " $OUTPUT "
You can’t perform that action at this time.
0 commit comments