Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Disable InfoTest in the CI #1013

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading