File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -6,9 +6,7 @@ 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- # Exit code can't currently be tested as it looks like it may be 255 or 139 depending on the PHP version.
10- # Related feature request upstream: https://github.com/TypedDevs/bashunit/issues/505
11- # assert_exit_code 255
9+ assert_exit_code 255
1210
1311 assert_contains " The PHP_CodeSniffer \" phpcs\" command ran out of memory." " $OUTPUT "
1412 assert_contains " Either raise the \" memory_limit\" of PHP in the php.ini file or raise the memory limit at runtime" " $OUTPUT "
@@ -17,9 +15,7 @@ function test_phpcs_out_of_memory_error_handling() {
1715
1816function test_phpcbf_out_of_memory_error_handling() {
1917 OUTPUT=" $( bin/phpcbf -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/ --suffix=.fixed) "
20- # Exit code can't currently be tested as it looks like it may be 255 or 139 depending on the PHP version.
21- # Related feature request upstream: https://github.com/TypedDevs/bashunit/issues/505
22- # assert_exit_code 255
18+ assert_exit_code 255
2319
2420 assert_contains " The PHP_CodeSniffer \" phpcbf\" command ran out of memory." " $OUTPUT "
2521 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