public function test_add_filter() { $router = new Router(); $router->addFilter('foo', [self::class, 'test_add_filter']); $filters = $router->getRoutesMatcher()->getFiltersMatcher()->getFilters(); $this->assertEquals(1, count($filters)); }
public function test_add_filter() { $router = new Router(); $router->addFilter('foo', [self::class, 'test_add_filter']); $filters = $router->getRoutesMatcher()->getFiltersMatcher()->getFilters(); $this->assertEquals(1, count($filters)); }