$parameters =
[ [],
];
$result =
$extension->
replaceQueryParameters($query,
$parameters);
static::
assertEquals('IN (NULL)',
$result);
} public function testEscapeBinaryParameter(): void
{ $binaryString =
pack('H*', '9d40b8c1417f42d099af4782ec4b20b6'
);
static::
assertEquals('0x9D40B8C1417F42D099AF4782EC4B20B6', DoctrineExtension::
escapeFunction($binaryString));
} public function testEscapeStringParameter(): void
{ static::
assertEquals('\'test string\'', DoctrineExtension::
escapeFunction('test string'
));
} public function testEscapeArrayParameter(): void
{ static::
assertEquals('1, NULL, \'test\', foo, NULL', DoctrineExtension::
escapeFunction([1, null, 'test',
new DummyClass('foo'
),
[]]));
}