File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,7 @@ public function testPathParametersAreArrays()
221
221
$ this ->assertInstanceOf (\cebe \openapi \spec \Parameter::class, $ userIdPath ->parameters [0 ]);
222
222
$ this ->assertInstanceOf (\cebe \openapi \spec \Parameter::class, $ userIdPath ->parameters [1 ]);
223
223
$ this ->assertEquals ('id ' , $ userIdPath ->parameters [2 ]->name );
224
+
224
225
$ dirSep = DIRECTORY_SEPARATOR ;
225
226
$ output = dirname (__DIR__ ) . $ dirSep . 'compiled.yml ' ;
226
227
shell_exec ('php ' . dirname (__DIR__ , 2 ) . "{$ dirSep }bin {$ dirSep }php-openapi inline " . $ file . ' ' . $ output );
@@ -238,10 +239,7 @@ public function testPathParametersAreArrays()
238
239
} elseif ($ majorVersion == 5 ) {
239
240
$ expected = $ baseExpected ."compiled-symfony-6.yml " ;
240
241
}
241
- if (stripos (PHP_OS , 'WIN ' ) === 0 ) {
242
-
243
- // $expected = "{$dirSep}data{$dirSep}issue{$dirSep}155{$dirSep}compiled-symfony-6-windows-lf.yml";
244
- ;
242
+ if (stripos (PHP_OS , 'WIN ' ) === 0 ) { # fixes https://github.com/cebe/php-openapi/actions/runs/14808968938/job/41581244210
245
243
file_put_contents ($ output , preg_replace ('~\R~ ' , "\n" , file_get_contents ($ output )));
246
244
file_put_contents ($ expected , preg_replace ('~\R~ ' , "\n" , file_get_contents ($ expected )));
247
245
}
You can’t perform that action at this time.
0 commit comments