From ffdc4f2fd275c0800f6aa6630f026febd10b9b44 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Fri, 16 May 2008 04:14:50 +0000 Subject: [PATCH] MINDR: Deliberately broke build in order to test buildbot git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@54667 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- testing/TestRunner.php | 3 +-- tests/i18nTest.php | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) 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 +}