client = $this->createClient(); } public function testRequiredAuth() { $core = \bootstrap::getCore(); $response = $core['Firewall']->requireAuthentication($this->app); $this->assertNull($response); $appbox = \appbox::get_instance($core); $session = $appbox->get_session(); $session->logout(); $response = $core['Firewall']->requireAuthentication($this->app); $this->assertTrue($response->isRedirect()); $this->assertEquals('/login/', $response->headers->get('location')); } } ?>