public function testPop($data) { $this->innerQueue->expects($this->once())->method('pop')->will($this->returnValue($data['serialized'])); $this->assertEquals($data['original'], $this->queue->pop()); }