Skip to content

Commit 02b63bd

Browse files
committed
Fix issue in Github action
1 parent f0a27b7 commit 02b63bd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/spec/PathTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ 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__) . '/tmp/compiled.yml');
225-
$this->assertFileEquals(dirname(__DIR__) . '/tmp/compiled.yml', dirname(__DIR__) . '/data/issue/155/compiled.yml');
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');
226227
}
227228
}

0 commit comments

Comments
 (0)