public function testRedirect() { $app = $this->getApp(); $request = Request::createFromGlobals(); $app->handle($request); $response = Library::redirect('search'); $this->assertEquals('/search', $response->headers->get('Location')); }