i write a test for my controller,it need $_SERVER[REQUEST_URI],how can i mock this and make it run my controller is
public function action_index()
{
$presenter = Presenter::forge('www/php');
$this->template->content = $presenter;
}
my test is
public function test_action_index()
{
$response = Request::forge('www/php')
->set_method('GET')
->execute()
->response();
$this->assertContains(' List', $response->body->__toString());
Cli::write(__METHOD__ . " √ \n", 'green');
}