Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 25, 2021
1 parent 95f81f6 commit c10a9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TextUI/Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ protected function handleBootstrap(string $filename): void

$testCaseSource = (new ReflectionClass(TestCase::class))->getFileName();

if (strpos($testCaseSource, __PHPUNIT_PHAR_ROOT__) !== 0) {
if (strpos($testCaseSource, 'phar://' . __PHPUNIT_PHAR__) !== 0) {
$this->exitWithErrorMessage(
sprintf(
'Mixed installation detected, exiting.' . PHP_EOL . PHP_EOL .
Expand Down

0 comments on commit c10a9e4

Please sign in to comment.