-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
PHPunit not expect generic exception? #454
Copy link
Copy link
Closed
Description
InvalidArgumentException: You must not expect the generic exception class,
when I test
class MyTest extends PHPUnit_Framework_TestCase
{
/**
* @ExpectedException Exception
* @expectedExceptionMessage Some Message
*/
public function testExceptionHasRightMessage()
{
throw new Exception('Some Message', 20);
}
}
with PHPUnit3.6.7
why ?
IF PHPunit not expect generic exception , why the document has this example?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels