wp-test.php does not exit with proper error code when tests fail
|Reported by:||benbalter||Owned by:|
|Priority:||minor||Milestone:||Legacy - Improve Framework|
If running wp-test.php as part of an automated test (e.g., using Travis CI), even when a test fails, the script simply ends (what's interpreted as a passing return code 0).
Instead, it should exit(1) on failure, and even better explicitly exit(0) on success so that the proper exit code is passed to other programs.
( The attached patch also removed the closing PHP tag )