Skip to content

Commit 61fe216

Browse files
committed
Fix issue in Github action for Windows
1 parent 02b63bd commit 61fe216

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/spec/PathTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,9 @@ 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-
shell_exec(dirname(__DIR__, 2) . '/bin/php-openapi inline ' . $file . ' ' . dirname(__DIR__) . '/compiled.yml');
225-
$this->assertFileEquals(dirname(__DIR__) . '/compiled.yml', dirname(__DIR__) . '/data/issue/155/compiled.yml');
226-
unlink(dirname(__DIR__) . '/compiled.yml');
224+
$dirSep = DIRECTORY_SEPARATOR;
225+
shell_exec(dirname(__DIR__, 2) . "{$dirSep}bin{$dirSep}php-openapi inline " . $file . ' ' . dirname(__DIR__) . $dirSep.'/compiled.yml');
226+
$this->assertFileEquals(dirname(__DIR__) . $dirSep.'compiled.yml', dirname(__DIR__) . "{$dirSep}data{$dirSep}issue{$dirSep}155{$dirSep}compiled.yml");
227+
unlink(dirname(__DIR__) . $dirSep.'compiled.yml');
227228
}
228229
}

0 commit comments

Comments
 (0)