Skip to content

Commit

Permalink
test: Disable InfoTest in the CI (#1013)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Oct 6, 2023
1 parent 885b725 commit 4427699
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/Console/Command/InfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@
use function implode;
use function preg_replace;
use function realpath;
use const PHP_OS_FAMILY;

/**
* @covers \KevinGH\Box\Console\Command\Info
* @covers \KevinGH\Box\Console\Command\PharInfoRenderer
*
* @runTestsInSeparateProcesses This is necessary as instantiating a PHAR in memory may load/autoload some stuff which
* can create undesirable side-effects.
* can create undesirable side effect.
*
* @internal
*/
Expand All @@ -43,6 +44,15 @@ class InfoTest extends CommandTestCase
{
private const FIXTURES = __DIR__.'/../../../fixtures/info';

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

parent::setUp();
}

protected function getCommand(): Command
{
return new Info();
Expand Down

0 comments on commit 4427699

Please sign in to comment.