Skip to content

Commit

Permalink
fail when detecting risky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Apr 12, 2017
1 parent 070eaa8 commit d924753
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tests/Locale/LocaleTest.php
Expand Up @@ -153,6 +153,8 @@ public function testSetDefault()
public function testSetDefaultAcceptsEn() public function testSetDefaultAcceptsEn()
{ {
$this->call('setDefault', 'en'); $this->call('setDefault', 'en');

$this->assertSame('en', $this->call('getDefault'));
} }


protected function call($methodName) protected function call($methodName)
Expand Down
2 changes: 2 additions & 0 deletions phpunit.xml.dist
Expand Up @@ -5,6 +5,8 @@
backupGlobals="false" backupGlobals="false"
colors="true" colors="true"
bootstrap="vendor/autoload.php" bootstrap="vendor/autoload.php"
failOnRisky="true"
failOnWarning="true"
> >
<php> <php>
<ini name="error_reporting" value="-1" /> <ini name="error_reporting" value="-1" />
Expand Down

0 comments on commit d924753

Please sign in to comment.