Skip to content
Snippets Groups Projects
Commit 3cb01f17 authored by Igor Melnikov's avatar Igor Melnikov
Browse files

MAGETWO-60353: Replace json_decode in...

MAGETWO-60353: Replace json_decode in \Magento\Framework\ObjectManager\DefinitionFactory::_unpack with SerializerInterface

Introducing SerializerInterface, removing obsolete code
parent 96603ae3
Branches
No related merge requests found
......@@ -7,14 +7,14 @@ namespace Magento\Framework\ObjectManager\Test\Unit;
use Magento\Framework\ObjectManager\Definition\Compiled;
use Magento\Framework\Serialize\SerializerInterface;
use Magento\Framework\Filesystem\DriverInterface;
use Magento\Framework\Filesystem\Driver\File;
use Magento\Framework\ObjectManager\DefinitionFactory;
use Magento\Framework\ObjectManager\Definition\Runtime;
class DefinitionFactoryTest extends \PHPUnit_Framework_TestCase
{
/**
* @var DriverInterface|\PHPUnit_Framework_MockObject_MockObject
* @var File|\PHPUnit_Framework_MockObject_MockObject
*/
private $filesystemDriverMock;
......@@ -30,7 +30,7 @@ class DefinitionFactoryTest extends \PHPUnit_Framework_TestCase
protected function setUp()
{
$this->filesystemDriverMock = $this->getMock(DriverInterface::class);
$this->filesystemDriverMock = $this->getMock(File::class);
$this->serializerMock = $this->getMock(SerializerInterface::class);
$this->definitionFactory = new DefinitionFactory(
$this->filesystemDriverMock,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment