File tree 2 files changed +0
-33
lines changed
2 files changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -89,25 +89,8 @@ private function assertApiContent(\cebe\openapi\spec\OpenApi $openapi)
89
89
$ this ->assertEquals ("1.0.0 " , $ openapi ->info ->version );
90
90
}
91
91
92
- /**
93
- * @see https://github.com/symfony/symfony/issues/34805
94
- */
95
92
public function testSymfonyYamlBugHunt ()
96
93
{
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
-
111
94
$ openApiFile = __DIR__ . '/../vendor/oai/openapi-specification/examples/v3.0/uspto.yaml ' ;
112
95
$ openapi = \cebe \openapi \Reader::readFromYamlFile ($ openApiFile );
113
96
Original file line number Diff line number Diff line change @@ -188,22 +188,6 @@ public function specProvider()
188
188
*/
189
189
public function testSpecs ($ openApiFile )
190
190
{
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
-
207
191
if (strtolower (substr ($ openApiFile , -5 , 5 )) === '.json ' ) {
208
192
$ json = json_decode (file_get_contents (__DIR__ . '/../../vendor/ ' . $ openApiFile ), true );
209
193
$ openapi = new OpenApi ($ json );
You can’t perform that action at this time.
0 commit comments