File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ function tear_down() {
55}
66
77function test_phpcs_out_of_memory_error_handling() {
8- OUTPUT=" $( bin/phpcs -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/) "
8+ OUTPUT=" $( { bin/phpcs -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/; } 2>&1 ) "
99 assert_exit_code 255
1010
1111 assert_contains " The PHP_CodeSniffer \" phpcs\" command ran out of memory." " $OUTPUT "
@@ -14,7 +14,7 @@ function test_phpcs_out_of_memory_error_handling() {
1414}
1515
1616function test_phpcbf_out_of_memory_error_handling() {
17- OUTPUT=" $( bin/phpcbf -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/ --suffix=.fixed) "
17+ OUTPUT=" $( { bin/phpcbf -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/ --suffix=.fixed; } 2>&1 ) "
1818 assert_exit_code 255
1919
2020 assert_contains " The PHP_CodeSniffer \" phpcbf\" command ran out of memory." " $OUTPUT "
You can’t perform that action at this time.
0 commit comments