Example #1
0
 public function setUp()
 {
     parent::setUp();
     $name = (new ReflectionClass($this))->getShortName();
     $router = new Router($this->mock(ContainerInterface::class));
     $router->setCachePath(__DIR__ . '/../Cache/' . $name . '.cache');
     $router->refreshCache(true);
     $this->definitions($router);
     $this->router = $router;
 }