public function testGetMetadataCallsInternalGetMetadata() { $this->_storage = $this->getMockForAbstractAdapter(array('internalGetMetadata')); $key = 'key1'; $result = array(); $this->_storage->expects($this->once())->method('internalGetMetadata')->with($this->equalTo($key))->will($this->returnValue($result)); $rs = $this->_storage->getMetadata($key); $this->assertSame($result, $rs); }