Skip to content

Commit

Permalink
Replace @ExpectedException with $this->expectException()
Browse files Browse the repository at this point in the history
  • Loading branch information
reedy committed Mar 30, 2020
1 parent 431ba01 commit d5c6700
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/phpunit/MergePluginTest.php
Expand Up @@ -1290,12 +1290,10 @@ function ($args) use ($that) {
}


/**
* @expectedException \Wikimedia\Composer\Merge\MissingFileException
*/
public function testMissingRequireThrowsException()
{
$dir = $this->fixtureDir(__FUNCTION__);
$this->expectException(\Wikimedia\Composer\Merge\MissingFileException::class);
$root = $this->rootFromJson("{$dir}/composer.json");
$root->getRequires()->shouldNotBeCalled();
$root->getDevRequires()->shouldNotBeCalled();
Expand Down

0 comments on commit d5c6700

Please sign in to comment.