/**
* @dataProvider getStripCommentsCodes
*
* @group legacy
*/
public function testStripComments(string
$source, string
$expected) { $this->
expectDeprecation('Since symfony/http-kernel 6.4: Method "Symfony\Component\HttpKernel\Kernel::stripComments()" is deprecated without replacement.'
);
$output = Kernel::
stripComments($source);
// Heredocs are preserved, making the output mixing Unix and Windows line
// endings, switching to "\n" everywhere on Windows to avoid failure.
if ('\\' === \DIRECTORY_SEPARATOR
) { $expected =
str_replace("\r\n", "\n",
$expected);
$output =
str_replace("\r\n", "\n",
$output);
} $this->
assertEquals($expected,
$output);
}