protected function setUp() { parent::setUp(); $this->session = $this->getMock('Symfony\\Component\\HttpFoundation\\Session\\SessionInterface'); $this->listener = new SessionInitByPostListener($this->session); }