Skip to content

Commit

Permalink
Further refactorings to PHPUnit namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
peterrehm authored and nicolas-grekas committed Feb 21, 2017
1 parent 9efc101 commit c60336e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Tests/Helper/LegacyCoreAssetsHelperTest.php
Expand Up @@ -44,7 +44,7 @@ public function testGetNonexistingPackage()
{
$helper = new CoreAssetsHelper($this->package);

$this->setExpectedException('\InvalidArgumentException');
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('\InvalidArgumentException');

$helper->getPackage('foo');
}
Expand Down
2 changes: 1 addition & 1 deletion Tests/PhpEngineTest.php
Expand Up @@ -86,7 +86,7 @@ public function testUnsetHelper()
$foo = new \Symfony\Component\Templating\Tests\Fixtures\SimpleHelper('foo');
$engine->set($foo);

$this->setExpectedException('\LogicException');
$this->{method_exists($this, $_ = 'expectException') ? $_ : 'setExpectedException'}('\LogicException');

unset($engine['foo']);
}
Expand Down

0 comments on commit c60336e

Please sign in to comment.