public function testRemove() { $this->list->insert('foo', new TestAsset\DummyRoute(), 0); $this->list->insert('bar', new TestAsset\DummyRoute(), 0); $this->assertEquals(2, count($this->list)); $this->list->remove('foo'); $this->assertEquals(1, count($this->list)); }
public function testRemovingNonExistentRouteDoesNotYieldError() { $this->list->remove('foo'); }
/** * removeRoute(): defined by RouteStack interface. * * @see Route::removeRoute() * @param string $name * @return RouteStack */ public function removeRoute($name) { $this->routes->remove($name); return $this; }