Esempio n. 1
0
 /**
  * Test that a set base URL is pushed to the request during the dispatch
  * process
  */
 public function testBaseUrlPushedToRequest()
 {
     $this->_controller->setBaseUrl('/index.php');
     $request = new Request\Http('http://example.com/index');
     $response = new Response\Cli();
     $response = $this->_controller->dispatch($request, $response);
     $this->assertContains('index.php', $request->getBaseUrl());
 }