public function testShouldSetDirecotryPathInDispatchMethod() { $path = dirname(__FILE__) . '/apps/sample/'; $dispatcher = new Net_URL_Dispatcher(__METHOD__); $_ENV['PATH_INFO'] = 'hoge/index'; ob_start(); $dispatcher->connect(':controller/:action')->dispatch($path); $buffer = ob_get_contents(); ob_end_clean(); $this->assertSame($dispatcher->getDirectory(), $path); }