Skip to content

Commit

Permalink
minor #5629 DX: fix CiIntegrationTest (keradus)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.18 branch.

Discussion
----------

DX: fix CiIntegrationTest

Commits
-------

a2ede3c DX: fix CiIntegrationTest
  • Loading branch information
keradus committed Apr 15, 2021
2 parents 47afc5a + a2ede3c commit 035830e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/Smoke/CiIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,16 @@ public function testIntegration(
If you need help while solving warnings, ask at https://gitter.im/PHP-CS-Fixer, we will help you!
';

/** @phpstan-ignore-next-line to avoid `Ternary operator condition is always true|false.` */
$aboutSubpattern = Application::VERSION_CODENAME
? 'PHP CS Fixer '.preg_quote(Application::VERSION, '/').' '.preg_quote(Application::VERSION_CODENAME, '/').' by Fabien Potencier and Dariusz Ruminski'
: 'PHP CS Fixer '.preg_quote(Application::VERSION, '/').' by Fabien Potencier and Dariusz Ruminski';

$pattern = sprintf(
'/^(?:%s)?(?:%s)?%s\n%s\n%s\n([\.S]{%d})\n%s$/',
preg_quote($optionalIncompatibilityWarning, '/'),
preg_quote($optionalXdebugWarning, '/'),
'PHP CS Fixer '.preg_quote(Application::VERSION, '/').' '.preg_quote(Application::VERSION_CODENAME, '/').' by Fabien Potencier and Dariusz Ruminski',
$aboutSubpattern,
preg_quote(sprintf('Runtime: PHP %s', PHP_VERSION), '/'),
preg_quote('Loaded config default from ".php_cs.dist".', '/'),
\strlen($expectedResult3Files),
Expand Down

0 comments on commit 035830e

Please sign in to comment.