示例#1
0
 public function testHasRouters()
 {
     $this->assertEquals(array(), $this->router->all());
     $this->assertFalse($this->router->hasRouters());
     list($low, $high) = $this->createRouterMocks();
     $this->router->add($low, 10);
     $this->router->add($high, 100);
     $this->assertTrue($this->router->hasRouters());
 }