/** * {@inheritdoc} */ public function setUp() { $directory = dirname(__FILE__) . '/../../build/tests'; $this->json_decode = $this->getFunctionMock(MockHelper::getNamespace(FileLogManager::class), 'json_decode'); $this->setUpDirectory($directory); $this->directory = $directory; $this->subject = new FileLogManager($this->directory); }
/** * {@inheritdoc} */ public function setUp() { $this->registry = $this->getMockBuilder(JobTypeRegistry::class)->disableOriginalConstructor()->getMock(); $this->serializer = $this->createMock(SerializerInterface::class); $this->json_decode = $this->getFunctionMock(MockHelper::getNamespace(SerializationHelper::class), 'json_decode'); $this->json_encode = $this->getFunctionMock(MockHelper::getNamespace(SerializationHelper::class), 'json_encode'); $this->subject = new SerializationHelper($this->registry, $this->serializer); }