Skip to content

Commit ebeffc6

Browse files
committed
Cleanup
1 parent 8a41d74 commit ebeffc6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/spec/PathTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)