14 use PHPUnit_Framework_MockObject_MockObject as Mock;
31 private $objectManagerMock;
38 $this->objectManagerMock = $this->getMockBuilder(ObjectManagerInterface::class)
39 ->getMockForAbstractClass();
42 $this->objectManagerMock,
46 'wrongType' => \stdClass::class,
53 $processorMock = $this->getMockBuilder(ConfigSetProcessorInterface::class)
54 ->getMockForAbstractClass();
55 $this->objectManagerMock->expects($this->once())
57 ->with(LockProcessor::class)
58 ->willReturn($processorMock);
60 $this->assertInstanceOf(
61 ConfigSetProcessorInterface::class,
72 $this->model->create(
'dummyType');
82 $this->objectManagerMock->expects($this->once())
84 ->with(\stdClass::class)
85 ->willReturn(
new \stdClass());
87 $this->model->create(
$type);
testCreateWrongImplementation()