Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Oct 8, 2023
1 parent af1ad09 commit 8d029eb
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 18 additions & 1 deletion tests/Console/Command/DiffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Fidry\Console\ExitCode;
use InvalidArgumentException;
use KevinGH\Box\Phar\InvalidPhar;
use KevinGH\Box\Platform;
use KevinGH\Box\Test\CommandTestCase;
use KevinGH\Box\Test\RequiresPharReadonlyOff;
use Symfony\Component\Console\Output\OutputInterface;
Expand Down Expand Up @@ -599,7 +600,8 @@ static function (CommandTester $commandTester): string {

return DisplayNormalizer::removeTrailingSpaces($commandTester->getDisplay(true));
},
<<<'OUTPUT'
Platform::isOSX()
? <<<'OUTPUT'
// Comparing the two archives... (do not check the signatures)
Expand All @@ -613,6 +615,21 @@ static function (CommandTester $commandTester): string {
---
> echo 'Hello world!';

OUTPUT
: <<<'OUTPUT'
// Comparing the two archives... (do not check the signatures)
[OK] The two archives are identical
// Comparing the two archives contents...
diff '--exclude=.phar_meta.json' simple-phar-bar.phar/bar.php simple-phar-baz.phar/bar.php
3c3
< echo "Hello world!";
---
> echo 'Hello world!';

OUTPUT,
1,
])();
Expand Down
3 changes: 1 addition & 2 deletions tests/Console/Command/InfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
use function implode;
use function preg_replace;
use function realpath;
use const PHP_OS_FAMILY;

/**
* @covers \KevinGH\Box\Console\Command\Info
Expand All @@ -46,7 +45,7 @@ class InfoTest extends CommandTestCase

protected function setUp(): void
{
if (PHP_OS_FAMILY !== 'Darwin') {
if (!Platform::isOSX()) {
self::markTestSkipped('This test requires more work to be working fine cross-platform.');
}

Expand Down

0 comments on commit 8d029eb

Please sign in to comment.