$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'
),
[]]));
} public function testEscapeObjectParameter(): void
{ $object =
new DummyClass('bar'
);
static::
assertEquals('bar', DoctrineExtension::
escapeFunction($object));
} public function testEscapeNullParameter(): void
{ static::
assertEquals('NULL', DoctrineExtension::
escapeFunction(null
));
}