getItems() публичный Метод

public getItems ( array $keys = [] )
$keys array
Пример #1
0
 public function testGetItems()
 {
     $prefix = 'ns';
     $key0 = 'key0';
     $key1 = 'key1';
     $returnValue = true;
     $stub = $this->getHierarchyCacheStub();
     $stub->expects($this->once())->method('getItems')->with([$prefix . $key0, $prefix . $key1])->willReturn($returnValue);
     $pool = new PrefixedCachePool($stub, $prefix);
     $this->assertEquals($returnValue, $pool->getItems([$key0, $key1]));
 }