Skip to content

Commit

Permalink
RegisterExternalStandardsTest: stabilize test for Composer v1 on Wind…
Browse files Browse the repository at this point in the history
…ows with PHP 5.5

Looks like the build for one of the new PRs is failing on the Composer v1 / Windows / PHP 5.5 build, which is notorious for not always showing the output from the plugin, even though the plugin does work.

This minor change should stabilize that test for that particular build.
  • Loading branch information
jrfnl committed Mar 5, 2022
1 parent 56d537d commit ccd127f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/IntegrationTest/RegisterExternalStandardsTest.php
Expand Up @@ -293,10 +293,11 @@ public function testRegisterOneStandardInSrcSubdir($phpcsVersion)
$this->writeComposerJsonFile($config, static::$tempGlobalPath);

// Install the dependencies and verify that the plugin has run.
$expectedStdOut = $this->willPluginOutputShow() ? 'PHP CodeSniffer Config installed_paths set to ' : null;
$this->assertExecute(
'composer global install -v --no-ansi',
0, // Expected exit code.
'PHP CodeSniffer Config installed_paths set to ', // Expectation for stdout.
$expectedStdOut, // Expectation for stdout.
null, // No stderr expectation.
'Failed to install dependencies.'
);
Expand Down

0 comments on commit ccd127f

Please sign in to comment.