public function testClearGroup() { $this->route->group('anyGroupName'); $this->route->add(null, '/anyPattern'); $this->route->group(); $this->route->add(null, '/anyPattern'); $this->assertEquals([['path' => '/anyPattern', 'group' => 'anyGroupName', 'method' => ''], ['path' => '/anyPattern', 'group' => '', 'method' => '']], $this->get('routesArray')); }