Catch An Expected Exception In PHP Unit Test By Nick Escobedo January 11, 2015 24 second read 1 Comment In PHP, Programming, Testing 11159 views Something I ran into a while back while writing tests. If intentionally testing code for an exception then it is required to add an annotation above the test method. Read more