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