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); }
/** * Get metadata * * @param string $key * @return array|bool Metadata on success, false on failure */ public function getMetadata($key) { $options = $this->getOptions(); if ($options->getReadable() && $options->getClearStatCache()) { clearstatcache(); } return parent::getMetadata($key); }
/** * Get metadata * * @param $key * @param array $options * @return array|bool|mixed|null */ public function getMetadata($key, array $options = array()) { $baseOptions = $this->getOptions(); if ($baseOptions->getReadable() && $baseOptions->getClearStatCache()) { clearstatcache(); } return parent::getMetadata($key, $options); }