public function testTransformTubeStatusTo_updatesTubeStatus() { $testTube = new TubeStatus(); $testTube->setCurrentTube('TEST'); $testTube->addWatchedTube('TEST'); /** @var \PHPUnit_Framework_MockObject_MockObject|Pool $poolMock */ $poolMock = $this->getMockBuilder(Pool::class)->disableOriginalConstructor()->setMethods(['dispatchCommand'])->getMock(); $poolMock->expects($this->never())->method('dispatchCommand'); $producer = new Producer($poolMock); $producer->transformTubeStatusTo($testTube, TubeStatus::TRANSFORM_BOTH); $this->assertEquals($testTube->getCurrentTube(), $producer->getTubeStatus()->getCurrentTube()); $this->assertEquals($testTube->getWatchedTubes(), $producer->getTubeStatus()->getWatchedTubes()); }