File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ To run the tests specific to the use of `PHP_CODESNIFFER_CBF === true`:
399399
400400### Writing End-to-End Tests
401401
402- Bash-based end-to-end tests can be written using the [Bashunit](https://bashunit.typeddevs.com/) test tooling.
402+ Bash-based end-to-end tests can be written using the [Bashunit](https://bashunit.typeddevs.com/) test tooling using version 0.26.0 or higher .
403403
404404To install bashunit, follow the [installation guide](https://bashunit.typeddevs.com/installation).
405405
Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ 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/; } 2>&1 ) "
9- assert_exit_code 255
9+ # The exact exit code is not our concern, just that it's non-zero.
10+ assert_unsuccessful_code
1011
1112 assert_contains " The PHP_CodeSniffer \" phpcs\" command ran out of memory." " $OUTPUT "
1213 assert_contains " Either raise the \" memory_limit\" of PHP in the php.ini file or raise the memory limit at runtime" " $OUTPUT "
@@ -15,7 +16,8 @@ function test_phpcs_out_of_memory_error_handling() {
1516
1617function test_phpcbf_out_of_memory_error_handling() {
1718 OUTPUT=" $( { bin/phpcbf -d memory_limit=4M --standard=tests/EndToEnd/Fixtures/endtoend.xml.dist tests/EndToEnd/Fixtures/ --suffix=.fixed; } 2>&1 ) "
18- assert_exit_code 255
19+ # The exact exit code is not our concern, just that it's non-zero.
20+ assert_unsuccessful_code
1921
2022 assert_contains " The PHP_CodeSniffer \" phpcbf\" command ran out of memory." " $OUTPUT "
2123 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