From: Marius Hoch Date: Thu, 9 Apr 2015 08:32:59 +0000 (+0200) Subject: Have phpunit.php exit with 1 in case it couldn't run the tests X-Git-Tag: 1.31.0-rc.0~11763 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=85acf8afba3df02f1a740f249db88ad9c5ffc178;p=lhc%2Fweb%2Fwiklou.git 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 --- 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();