/** * @test */ public function delegateGetMetadatas() { $keys = []; $values = []; $this->storage->getMetadatas($keys)->willReturn($values); $return = $this->cache->getMetadatas($keys); $this->assertSame($values, $return); }
public function testGetMetadatasReturnsEmptyArrayIfNonReadable() { $this->_options->setReadable(false); $this->assertTrue($this->_storage->setItem('key', 'value')); $this->assertEquals(array(), $this->_storage->getMetadatas(array('key'))); }
public function getMetadatas(array $keys) { return $this->storage->getMetadatas($keys); }