AFAIK, Symfony PHPUnit confguration converts errors to exception. No need for such test as the error would result in a test failure