Skip to content

Commit

Permalink
标注 @expectedExceptionMessage 区分具体的异常信息
Browse files Browse the repository at this point in the history
  • Loading branch information
ueaner committed Mar 1, 2018
1 parent 873f03b commit f194a0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Events/EventManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public function testTriggerEmptyEvents()

/**
* @expectedException \Exception
* @expectedExceptionMessage Invalid event type
*/
public function testTriggerInvalidEventType()
{
Expand All @@ -78,6 +79,7 @@ public function testTriggerInvalidEventType()

/**
* @expectedException \Exception
* @expectedExceptionMessage Invalid event type
*/
public function testTriggerInvalidEventType2()
{
Expand Down

0 comments on commit f194a0a

Please sign in to comment.