Skip to content

Commit

Permalink
Don't bother to fix help tests for very old versions of php
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-1-anderson committed Dec 13, 2024
1 parent b9754a2 commit b02e196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/HelpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ function simplifyWhitespace($data)

function testHelp()
{
if (version_compare(PHP_VERSION, '7.4.0', '<')) {
$this->markTestSkipped("Help tests don't work on very old versions of PHP; we expect help itself is still working, but support for these old versions is limited.");
}

$symfonyConsoleVersion = ltrim(InstalledVersions::getPrettyVersion('symfony/console'), 'v');
if (version_compare($symfonyConsoleVersion, '5.3.0', '>=')) {
$expectedAnsiMessage = 'Force (or disable --no-ansi) ANSI output';
Expand Down

0 comments on commit b02e196

Please sign in to comment.