Exemple #1
0
 public function testModulePathDispatched()
 {
     $this->_controller->addControllerDirectory(__DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '/Admin', 'admin');
     $request = new Request\Http('http://example.com/admin/foo/bar');
     $this->_controller->setResponse(new Response\Cli());
     $response = $this->_controller->dispatch($request);
     $body = $response->getBody();
     $this->assertContains('Admin_Foo::bar action called', $body, $body);
 }