public function testAddClearRoute() { $mockRoute = $this->getMockBuilder('\\Symfony\\Component\\Routing\\Route')->disableOriginalConstructor()->getMock(); $this->assertCount(3, $this->router->getRoutes()); $this->router->addRoute($mockRoute); $this->assertCount(4, $this->router->getRoutes()); $this->router->clearRoutes(); $this->assertCount(0, $this->router->getRoutes()); }