Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge pull request #105 from onamission/patch-2
Browse files Browse the repository at this point in the history
setExpectedException deprecated?
  • Loading branch information
weierophinney committed Dec 17, 2018
2 parents 5670066 + e30ed96 commit 4f67117
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/book/unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,8 @@ public function testExceptionIsThrownWhenGettingNonExistentAlbum()
->select(['id' => 123])
->willReturn($resultSet->reveal());

$this->setExpectedException(
RuntimeException::class,
'Could not find row with identifier 123'
);
$this->expectException(RuntimeException::class);
$this->expectExceptionMessage('Could not find row with identifier 123');
$this->albumTable->getAlbum(123);
}
```
Expand Down

0 comments on commit 4f67117

Please sign in to comment.