protected function setUp() { parent::setUp(); $this->translator = $this->getMock('\\Symfony\\Component\\Translation\\TranslatorInterface'); $this->listener = new ExceptionListener($this->translator); }