public function testOptions() { $_SERVER['REQUEST_METHOD'] = 'OPTIONS'; $routes = new RouteCollection(); $expected = ['here' => '\\there']; $routes->options('here', 'there'); $this->assertEquals($expected, $routes->getRoutes()); }