diff --git a/tests/Console/Command/DiffTest.php b/tests/Console/Command/DiffTest.php index b506c399f..9091f05af 100644 --- a/tests/Console/Command/DiffTest.php +++ b/tests/Console/Command/DiffTest.php @@ -69,8 +69,8 @@ public function test_it_can_display_the_diff_of_two_phar_files( $this->commandTester->execute( [ 'command' => 'diff', - 'pharA' => $pharAPath, - 'pharB' => $pharBPath, + 'pharA' => realpath($pharAPath), + 'pharB' => realpath($pharBPath), '--diff' => $diffMode->value, ], ); @@ -358,8 +358,8 @@ public static function diffPharsProvider(): iterable private static function commonDiffPharsProvider(): iterable { yield 'same PHAR' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-foo.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-foo.phar'), + self::FIXTURES_DIR.'/simple-phar-foo.phar', + self::FIXTURES_DIR.'/simple-phar-foo.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -376,8 +376,8 @@ private static function commonDiffPharsProvider(): iterable ]; yield 'different data; same content' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-bar-compressed.phar'), + self::FIXTURES_DIR.'/simple-phar-bar.phar', + self::FIXTURES_DIR.'/simple-phar-bar-compressed.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -413,8 +413,8 @@ private static function listDiffPharsProvider(): iterable yield from self::commonDiffPharsProvider(); yield 'different files' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-foo.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), + self::FIXTURES_DIR.'/simple-phar-foo.phar', + self::FIXTURES_DIR.'/simple-phar-bar.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -438,8 +438,8 @@ private static function listDiffPharsProvider(): iterable ]; yield 'same files different content' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-baz.phar'), + self::FIXTURES_DIR.'/simple-phar-bar.phar', + self::FIXTURES_DIR.'/simple-phar-baz.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -461,8 +461,8 @@ public static function gitDiffPharsProvider(): iterable yield from self::commonDiffPharsProvider(); yield 'different files' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-foo.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), + self::FIXTURES_DIR.'/simple-phar-foo.phar', + self::FIXTURES_DIR.'/simple-phar-bar.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -481,8 +481,8 @@ public static function gitDiffPharsProvider(): iterable ]; yield 'same files different content' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-baz.phar'), + self::FIXTURES_DIR.'/simple-phar-bar.phar', + self::FIXTURES_DIR.'/simple-phar-baz.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -511,8 +511,8 @@ public static function GNUDiffPharsProvider(): iterable yield from self::commonDiffPharsProvider(); yield 'different files' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-foo.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), + self::FIXTURES_DIR.'/simple-phar-foo.phar', + self::FIXTURES_DIR.'/simple-phar-bar.phar', <<<'OUTPUT' // Comparing the two archives... (do not check the signatures) @@ -529,8 +529,8 @@ public static function GNUDiffPharsProvider(): iterable ]; yield 'same files different content' => [ - realpath(self::FIXTURES_DIR.'/simple-phar-bar.phar'), - realpath(self::FIXTURES_DIR.'/simple-phar-baz.phar'), + self::FIXTURES_DIR.'/simple-phar-bar.phar', + self::FIXTURES_DIR.'/simple-phar-baz.phar', Platform::isOSX() ? <<<'OUTPUT'