PHPUnit: Annotations vs Methods
- https://thephp.cc/news/2016/02/questioning-phpunit-best-practices
- Bottom Line, use methods... annotation require fully qualified namespaces..
- See the site for the full narrative
Ever since I added the @expectedException annotation to PHPUnit I considered using it a best practice. This was reflected in PHPUnit's documentation as well as in my conference presentations and trainings, for instance.
A New Best Practice: expectException()