diff --git a/tests/Core/Generators/GeneratorTest.php b/tests/Core/Generators/GeneratorTest.php index 6a1bfb5d6a..738b78db32 100644 --- a/tests/Core/Generators/GeneratorTest.php +++ b/tests/Core/Generators/GeneratorTest.php @@ -249,23 +249,23 @@ public function testGeneratorWillShowEachStandardSeparately() $regex = '`^ \R* # Optional blank line at the start. (?: - (?P-+\R) # Line with dashes. + (?P-++\R) # Line with dashes. \|[ ]GENERATORTEST[ ]CODING[ ]STANDARD:[ ][^\|]+\|\R # Doc title line with prefix expected for first standard. (?P>delimiter) # Line with dashes. - .+?\R{2} # Standard description. + \R(?:[^\r\n]+\R)+\R{2} # Standard description. ) # Only expect this group once. (?: (?P>delimiter) # Line with dashes. \|[ ]PSR1[ ]CODING[ ]STANDARD:[ ][^\|]+\|\R # Doc title line with prefix expected for second standard. (?P>delimiter) # Line with dashes. - .+?\R+ # Standard description. + \R(?:[^\r\n]+\R)+\R # Standard description. (?: -+[ ]CODE[ ]COMPARISON[ ]-+\R # Code Comparison starter line with dashes. - (?:.+?(?P>delimiter)\R){2} # Arbitrary text followed by a delimiter line. + (?:(?:[^\r\n]+\R)+(?P>delimiter)){2} # Arbitrary text followed by a delimiter line. )* # Code comparison is optional and can exist multiple times. \R+ ){3,} # This complete group should occur at least three times. - `sx'; + `x'; $this->expectOutputRegex($regex);