public function testShouldDispatchToActionClassBySetterMethod()
 {
     $path = dirname(dirname(__FILE__)) . '/apps/sample/';
     $dispatcher = new Net_URL_Dispatcher(__METHOD__);
     $dispatcher->setPathInfo('hoge');
     ob_start();
     $dispatcher->connect(':action')->dispatch($path);
     $buffer = ob_get_contents();
     ob_end_clean();
     $this->assertSame($buffer, 'HogeAction_execute');
 }
 public function testShouldDispatchToControllerClassWhichCallsStatic()
 {
     $path = dirname(dirname(__FILE__)) . '/apps/sample/';
     $dispatcher = new Net_URL_Dispatcher(__METHOD__);
     $dispatcher->setPathInfo('hoge/index');
     ob_start();
     $dispatcher->connect('hoge/:action/')->dispatch($path);
     $buffer = ob_get_contents();
     ob_end_clean();
     $this->assertSame($buffer, 'HogeController_indexAction');
 }