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()
221221 $ this ->assertInstanceOf (\cebe \openapi \spec \Parameter::class, $ userIdPath ->parameters [0 ]);
222222 $ this ->assertInstanceOf (\cebe \openapi \spec \Parameter::class, $ userIdPath ->parameters [1 ]);
223223 $ this ->assertEquals ('id ' , $ userIdPath ->parameters [2 ]->name );
224+
224225 $ dirSep = DIRECTORY_SEPARATOR ;
225226 $ output = dirname (__DIR__ ) . $ dirSep . 'compiled.yml ' ;
226227 shell_exec ('php ' . dirname (__DIR__ , 2 ) . "{$ dirSep }bin {$ dirSep }php-openapi inline " . $ file . ' ' . $ output );
@@ -238,10 +239,7 @@ public function testPathParametersAreArrays()
238239 } elseif ($ majorVersion == 5 ) {
239240 $ expected = $ baseExpected ."compiled-symfony-6.yml " ;
240241 }
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
245243 file_put_contents ($ output , preg_replace ('~\R~ ' , "\n" , file_get_contents ($ output )));
246244 file_put_contents ($ expected , preg_replace ('~\R~ ' , "\n" , file_get_contents ($ expected )));
247245 }
You can’t perform that action at this time.
0 commit comments