Exemplo n.º 1
0
 /**
  * @covers Mapper::connect
  */
 public function testConnect()
 {
     $mapper = new Mapper();
     $mapper->connect('home_route', new Route('/', array('_controller' => 'sample', '_action' => 'index')));
     $mapper->connect('to_index_route', new Route('/{_controller}', array('_action' => 'index')));
     $mapper->connect('complete_route', new Route('/{_controller}/{_action}'));
     $this->assertCount(3, $mapper->getRoutes());
     return $mapper;
 }