Skip to content

Commit d924753

Browse files
committed
fail when detecting risky tests
1 parent 070eaa8 commit d924753

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Tests/Locale/LocaleTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ public function testSetDefault()
153153
public function testSetDefaultAcceptsEn()
154154
{
155155
$this->call('setDefault', 'en');
156+
157+
$this->assertSame('en', $this->call('getDefault'));
156158
}
157159

158160
protected function call($methodName)

phpunit.xml.dist

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
backupGlobals="false"
66
colors="true"
77
bootstrap="vendor/autoload.php"
8+
failOnRisky="true"
9+
failOnWarning="true"
810
>
911
<php>
1012
<ini name="error_reporting" value="-1" />

0 commit comments

Comments
 (0)