Skip to content

Commit 41db38d

Browse files
authored
Run all tests (#136)
1 parent eb1fc28 commit 41db38d

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

tests/ReaderTest.php

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,25 +89,8 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi)
8989
$this->assertEquals("1.0.0", $openapi->info->version);
9090
}
9191

92-
/**
93-
* @see https://github.com/symfony/symfony/issues/34805
94-
*/
9592
public function testSymfonyYamlBugHunt()
9693
{
97-
// skip test on symfony/yaml 5.0 due to bug https://github.com/symfony/symfony/issues/34805
98-
$installed = json_decode(file_get_contents(__DIR__ . '/../vendor/composer/installed.json'), true);
99-
// Check for composer 2.0 structure
100-
if (array_key_exists('packages', $installed)) {
101-
$installed = $installed['packages'];
102-
}
103-
foreach($installed as $pkg) {
104-
if ($pkg['name'] === 'symfony/yaml' && version_compare($pkg['version'], 'v4.4', '>=')) {
105-
$this->markTestSkipped(
106-
'This test is incompatible with symfony/yaml 4.4 and 5.0, see symfony bug https://github.com/symfony/symfony/issues/34805'
107-
);
108-
}
109-
}
110-
11194
$openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml';
11295
$openapi = \cebe\openapi\Reader::readFromYamlFile($openApiFile);
11396

tests/spec/OpenApiTest.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -188,22 +188,6 @@ public function specProvider()
188188
*/
189189
public function testSpecs($openApiFile)
190190
{
191-
// skip test on symfony/yaml 5.0 due to bug https://github.com/symfony/symfony/issues/34805
192-
if ($openApiFile === 'oai/openapi-specification/examples/v3.0/uspto.yaml') {
193-
$installed = json_decode(file_get_contents(__DIR__ . '/../../vendor/composer/installed.json'), true);
194-
// Check for composer 2.0 structure
195-
if (array_key_exists('packages', $installed)) {
196-
$installed = $installed['packages'];
197-
}
198-
foreach ($installed as $pkg) {
199-
if ($pkg['name'] === 'symfony/yaml' && version_compare($pkg['version'], 'v4.4', '>=')) {
200-
$this->markTestSkipped(
201-
'This test is incompatible with symfony/yaml 4.4 and 5.0, see symfony bug https://github.com/symfony/symfony/issues/34805'
202-
);
203-
}
204-
}
205-
}
206-
207191
if (strtolower(substr($openApiFile, -5, 5)) === '.json') {
208192
$json = json_decode(file_get_contents(__DIR__ . '/../../vendor/' . $openApiFile), true);
209193
$openapi = new OpenApi($json);

0 commit comments

Comments
 (0)