From 85acf8afba3df02f1a740f249db88ad9c5ffc178 Mon Sep 17 00:00:00 2001 From: Marius Hoch Date: Thu, 9 Apr 2015 10:32:59 +0200 Subject: [PATCH] Have phpunit.php exit with 1 in case it couldn't run the tests Just makes more sense not to claim we could complete everything if we actually couldn't. Change-Id: I4ec3a2da8913ca546782919813eb18a05a5cca0a --- tests/phpunit/phpunit.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/phpunit.php b/tests/phpunit/phpunit.php index e59b506370..d18ab73917 100755 --- a/tests/phpunit/phpunit.php +++ b/tests/phpunit/phpunit.php @@ -228,12 +228,14 @@ foreach ( array( } if ( !$ok ) { - die( "Couldn't find a usable PHPUnit.\n" ); + echo "Couldn't find a usable PHPUnit.\n"; + exit( 1 ); } $puVersion = PHPUnit_Runner_Version::id(); if ( $puVersion !== '@package_version@' && version_compare( $puVersion, '3.7.0', '<' ) ) { - die( "PHPUnit 3.7.0 or later required; you have {$puVersion}.\n" ); + echo "PHPUnit 3.7.0 or later required; you have {$puVersion}.\n"; + exit( 1 ); } PHPUnit_TextUI_Command::main(); -- 2.20.1