9 use Magento\Framework\Serialize\Signer;
10 use Magento\Framework\Serialize\InvalidSignatureException;
21 $objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
32 $this->assertEquals($serializedValue, $this->
serialize->serialize(
$value));
41 [
'string',
's:6:"string";'],
47 [[
'foo' =>
'bar'],
'a:1:{s:3:"foo";s:3:"bar";}'],
58 $this->assertEquals(
$value, $this->
serialize->unserialize($serializedValue));
67 [
's:6:"string";',
'string'],
73 [
'a:1:{s:3:"foo";s:3:"bar";}', [
'foo' =>
'bar']],
unserializeExceptionDataProvider()
testSerialize($value, $serializedValue)
testUnserializeException($value)
testUnserialize($serializedValue, $value)
testUnserializeExceptionCorruptedString()
unserializeDataProvider()