Skip to content

Commit 2c63b0a

Browse files
committed
Try this
1 parent a2f76d1 commit 2c63b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/EndToEnd/outofmemory_test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function tear_down() {
55
}
66

77
function 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

1616
function 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"

0 commit comments

Comments
 (0)