requireAuthentication(self::$DI['app']); $this->assertInstanceOf('\\Alchemy\\Phrasea\\Security\\Firewall', $res); } /** * @expectedException Symfony\Component\HttpKernel\Exception\HttpException */ public function testRequiredAuthNotAuthenticated() { self::$DI['app']['authentication']->closeAccount(); self::$DI['app']['firewall']->requireAuthentication(self::$DI['app']); } }