Instead of doing this check, force console to be `false` in the tests through `Zend\Console\Console::overrideIsConsole(false)`