File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments