/** * @test * @dataProvider provideDataForGetScanOptions */ public function getScanOptions($keyAndMethod, $value) { $config = new SwaggerConfig(__DIR__); $method = 'set' . ucfirst($keyAndMethod); $config->{$method}($value); self::assertEquals([$keyAndMethod => $value], $config->getScanOptions()); }
/** * @return \Swagger\Annotations\Swagger */ public function getSwagger() { $swagger = \Swagger\scan($this->config->getBasePath(), $this->config->getScanOptions()); return $swagger; }