class PcreExtensionTest extends TestCase
{ /**
* @dataProvider replaceCases
*/
public function testReplaces(string
$template, string
$expected): void
{ $extension =
new PcreExtension();
$env =
new Environment(new ArrayLoader(['test' =>
$template]));
$env->
addExtension($extension);
static::
assertSame($expected,
$env->
render('test'
));
} /**
* @return iterable<array-key, array{string, string}>
*/
public static function replaceCases(): iterable
{