public function testGetItemCallsInternalGetItem() { $this->_storage = $this->getMockForAbstractAdapter(array('internalGetItem')); $key = 'key1'; $result = 'value1'; $this->_storage->expects($this->once())->method('internalGetItem')->with($this->equalTo($key))->will($this->returnValue($result)); $rs = $this->_storage->getItem($key); $this->assertEquals($result, $rs); }