diff --git a/tests/Composer/Test/InstallerTest.php b/tests/Composer/Test/InstallerTest.php index b6a809dc1..20a8c14cf 100644 --- a/tests/Composer/Test/InstallerTest.php +++ b/tests/Composer/Test/InstallerTest.php @@ -196,13 +196,14 @@ class InstallerTest extends TestCase $test = file_get_contents($file->getRealpath()); + $content = '(?:.(?!--[A-Z]))+'; $pattern = '{^ --TEST--\s*(?P.*?)\s* - (?:--CONDITION--\s*(?P.*?))?\s* - --COMPOSER--\s*(?P.*?)\s* - (?:--LOCK--\s*(?P.*?))?\s* - (?:--INSTALLED--\s*(?P.*?))?\s* - (?:--INSTALLED:DEV--\s*(?P.*?))?\s* + (?:--CONDITION--\s*(?P'.$content.'))?\s* + --COMPOSER--\s*(?P'.$content.')\s* + (?:--LOCK--\s*(?P'.$content.'))?\s* + (?:--INSTALLED--\s*(?P'.$content.'))?\s* + (?:--INSTALLED:DEV--\s*(?P'.$content.'))?\s* --EXPECT(?P:UPDATE)?(?P:DEV)?--\s*(?P.*?)\s* $}xs';