assertNull(self::$DI['app']['firewall']->requireAuthentication()); } public function testRequiredAuthNotAuthenticated() { $this->logout(self::$DI['app']); $this->assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', self::$DI['app']['firewall']->requireAuthentication()); } }