From d924753999dcb707c905feaa67040a6a894a5efc Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Wed, 12 Apr 2017 08:19:06 +0200 Subject: [PATCH] fail when detecting risky tests --- Tests/Locale/LocaleTest.php | 2 ++ phpunit.xml.dist | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Tests/Locale/LocaleTest.php b/Tests/Locale/LocaleTest.php index 94572e6f..5ee414a1 100644 --- a/Tests/Locale/LocaleTest.php +++ b/Tests/Locale/LocaleTest.php @@ -153,6 +153,8 @@ public function testSetDefault() public function testSetDefaultAcceptsEn() { $this->call('setDefault', 'en'); + + $this->assertSame('en', $this->call('getDefault')); } protected function call($methodName) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 9e7ce2f0..a3fcd7c9 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,6 +5,8 @@ backupGlobals="false" colors="true" bootstrap="vendor/autoload.php" + failOnRisky="true" + failOnWarning="true" >