diff --git a/tests/ReaderTest.php b/tests/ReaderTest.php index 6e961ab6..435a8e08 100644 --- a/tests/ReaderTest.php +++ b/tests/ReaderTest.php @@ -89,25 +89,8 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi) $this->assertEquals("1.0.0", $openapi->info->version); } - /** - * @see https://github.com/symfony/symfony/issues/34805 - */ public function testSymfonyYamlBugHunt() { - // skip test on symfony/yaml 5.0 due to bug https://github.com/symfony/symfony/issues/34805 - $installed = json_decode(file_get_contents(__DIR__ . '/../vendor/composer/installed.json'), true); - // Check for composer 2.0 structure - if (array_key_exists('packages', $installed)) { - $installed = $installed['packages']; - } - foreach($installed as $pkg) { - if ($pkg['name'] === 'symfony/yaml' && version_compare($pkg['version'], 'v4.4', '>=')) { - $this->markTestSkipped( - 'This test is incompatible with symfony/yaml 4.4 and 5.0, see symfony bug https://github.com/symfony/symfony/issues/34805' - ); - } - } - $openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml'; $openapi = \cebe\openapi\Reader::readFromYamlFile($openApiFile); diff --git a/tests/spec/OpenApiTest.php b/tests/spec/OpenApiTest.php index bf321f1b..20b568ed 100644 --- a/tests/spec/OpenApiTest.php +++ b/tests/spec/OpenApiTest.php @@ -188,22 +188,6 @@ public function specProvider() */ public function testSpecs($openApiFile) { - // skip test on symfony/yaml 5.0 due to bug https://github.com/symfony/symfony/issues/34805 - if ($openApiFile === 'oai/openapi-specification/examples/v3.0/uspto.yaml') { - $installed = json_decode(file_get_contents(__DIR__ . '/../../vendor/composer/installed.json'), true); - // Check for composer 2.0 structure - if (array_key_exists('packages', $installed)) { - $installed = $installed['packages']; - } - foreach ($installed as $pkg) { - if ($pkg['name'] === 'symfony/yaml' && version_compare($pkg['version'], 'v4.4', '>=')) { - $this->markTestSkipped( - 'This test is incompatible with symfony/yaml 4.4 and 5.0, see symfony bug https://github.com/symfony/symfony/issues/34805' - ); - } - } - } - if (strtolower(substr($openApiFile, -5, 5)) === '.json') { $json = json_decode(file_get_contents(__DIR__ . '/../../vendor/' . $openApiFile), true); $openapi = new OpenApi($json);