run() публичный Метод

Lists all connected routes to the router. See the all() method for details and examples.
public run ( ) : void
Результат void
Пример #1
0
 /**
  * Test the alias method for "all".
  */
 public function testRun()
 {
     $command = new Route(array('routes' => $this->_config['routes'], 'classes' => array('response' => 'lithium\\tests\\mocks\\console\\MockResponse'), 'request' => new Request()));
     $command->run();
     $expected = 'TemplateParams--------------';
     $expected .= '/{"controller":"Pages","action":"view"}';
     $expected .= '/pages/{:args}{"controller":"Pages","action":"view"}';
     $expected .= '/test/{:args}{"controller":"lithium\\test\\\\Controller","action":"index"}';
     $expected .= '/test{"controller":"lithium\\test\\\\Controller","action":"index"}';
     $this->assertEqual($this->_strip($expected), $this->_strip($command->response->output));
 }