Moving that to `@expectedException` annotation might be better, than bearing this code inside the test. Also that comment would fit nicely in method's PHPDoc.