Skip to content

Commit

Permalink
Merge pull request #162 from PHPCSStandards/feature/baselinetest-mino…
Browse files Browse the repository at this point in the history
…r-tweak

BaseLineTest: stabilize the message checks
  • Loading branch information
Potherca committed Mar 5, 2022
2 parents 99dfefe + ce49dbd commit 9410334
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/IntegrationTest/BaseLineTest.php
Expand Up @@ -10,6 +10,7 @@

namespace Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\IntegrationTest;

use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Plugin;
use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\PHPCSVersions;
use Dealerdirect\Composer\Plugin\Installers\PHPCodeSniffer\Tests\TestCase;

Expand Down Expand Up @@ -71,7 +72,7 @@ public function testBaseLineGlobal($phpcsVersion, $expectedStnds)
$this->assertComposerValidates(static::$tempGlobalPath);

// Make sure the plugin runs.
$expectedStdOut = $this->willPluginOutputShow() ? 'Running PHPCodeSniffer Composer Installer' : null;
$expectedStdOut = $this->willPluginOutputShow() ? Plugin::MESSAGE_RUNNING_INSTALLER : null;
$this->assertExecute(
'composer global install -v --no-ansi',
0, // Expected exit code.
Expand Down Expand Up @@ -115,7 +116,7 @@ public function testBaseLineLocal($phpcsVersion, $expectedStnds)
$this->assertComposerValidates(static::$tempLocalPath);

// Make sure the plugin runs.
$expectedStdOut = $this->willPluginOutputShow() ? 'Running PHPCodeSniffer Composer Installer' : null;
$expectedStdOut = $this->willPluginOutputShow() ? Plugin::MESSAGE_RUNNING_INSTALLER : null;
$this->assertExecute(
sprintf('composer install -v --no-ansi --working-dir=%s', escapeshellarg(static::$tempLocalPath)),
0, // Expected exit code.
Expand Down

0 comments on commit 9410334

Please sign in to comment.