diff --git a/testing/TestRunner.php b/testing/TestRunner.php index 87ede895e..7a7036178 100644 --- a/testing/TestRunner.php +++ b/testing/TestRunner.php @@ -108,9 +108,8 @@ class TestRunner extends Controller { Debug::loadErrorHandlers(); if(!Director::is_cli()) self::$default_reporter->writeFooter(); - // Todo: we should figure out how to pass this data back through Director more cleanly - if(Director::is_cli() && $testResult->errorCount() > 0) exit(2); + if(Director::is_cli() && ($testResult->failureCount() + $testResult->errorCount()) > 0) exit(2); } } diff --git a/tests/i18nTest.php b/tests/i18nTest.php index a2b442d01..587bfebbc 100644 --- a/tests/i18nTest.php +++ b/tests/i18nTest.php @@ -2,9 +2,10 @@ class i18nTest extends SapphireTest { function testGetExistingTranslations() { + $this->assertTrue(false); $translations = i18n::get_existing_translations(); $this->assertTrue(isset($translations['en_US']), 'Checking for en_US translation'); $this->assertTrue(isset($translations['de_DE']), 'Checking for de_DE translation'); } -} \ No newline at end of file +}