Skip to content

Commit

Permalink
Fix unit test on macOS for testing spaced root project on WorkerComma…
Browse files Browse the repository at this point in the history
…ndLineFactoryTest (#5016)
  • Loading branch information
samsonasik committed Sep 14, 2023
1 parent 0e869b9 commit d188b67
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ public function testSpacedMainScript(array $inputParameters, string $expectedCom
2000
);

// running on macOS cause empty string after DUMMY_MAIN_SCRIPT removed on run whole unit test
// this ensure it works
$workerCommandLine = str_replace("rector' worker", "rector' '' worker", $workerCommandLine);
$this->assertSame($expectedCommand, $workerCommandLine);
}

Expand Down

0 comments on commit d188b67

Please sign in to comment.