Skip to content

Commit f194a0a

Browse files
committed
标注 @expectedExceptionMessage 区分具体的异常信息
1 parent 873f03b commit f194a0a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/Events/EventManagerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function testTriggerEmptyEvents()
6161

6262
/**
6363
* @expectedException \Exception
64+
* @expectedExceptionMessage Invalid event type
6465
*/
6566
public function testTriggerInvalidEventType()
6667
{
@@ -78,6 +79,7 @@ public function testTriggerInvalidEventType()
7879

7980
/**
8081
* @expectedException \Exception
82+
* @expectedExceptionMessage Invalid event type
8183
*/
8284
public function testTriggerInvalidEventType2()
8385
{

0 commit comments

Comments
 (0)