示例#1
0
 public function testremoveRouteAsArray()
 {
     $stack = new SimpleRouteStack();
     $stack->addRoutes(array('foo' => new TestAsset\DummyRoute()));
     $this->assertEquals($stack, $stack->removeRoute('foo'));
     $this->assertNull($stack->match(new Request()));
 }