Add PHPUnit method exception.