Skip to content

Commit 8e2be2e

Browse files
committed
Update
1 parent 23a7b42 commit 8e2be2e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/EndToEnd/outofmemory_test.sh

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

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

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

0 commit comments

Comments
 (0)