Skip to content

Commit

Permalink
[TASK] Ensure cli-tool symlink is regenerated in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ohader committed Oct 18, 2019
1 parent 6f13361 commit 586ff60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Functional/Interceptor/PharExtensionInterceptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ protected function tearDown()
public function cliToolCommandDataProvider(): array
{
$fixtureDirectory = dirname(Helper::normalizeWindowsPath(__DIR__)) . '/Fixtures';
if (!is_link($fixtureDirectory . '/cli-tool')) {
symlink($fixtureDirectory . '/cli-tool.phar', $fixtureDirectory . '/cli-tool');
if (is_link($fixtureDirectory . '/cli-tool')) {
unlink($fixtureDirectory . '/cli-tool');
}
symlink($fixtureDirectory . '/cli-tool.phar', $fixtureDirectory . '/cli-tool');
return $this->inflateDataSet([
// add ' --plain' in order to disable PharStreamWrapper in CLI tool
$fixtureDirectory . '/cli-tool.phar',
Expand Down

0 comments on commit 586ff60

Please sign in to comment.