Use `setExpectedException` instead of annotations
Use `setExpectedException` instead of annotations

when multiple method calls occur, and more than one could raise the
exception.

zendframework/zend-navigation