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

public getItem ( $key )
Пример #1
0
 /**
  * @test
  */
 public function cache()
 {
     $path = __DIR__ . '/sample/source/script1.js';
     $content = file_get_contents($path);
     $cache = new MemoryStore();
     $pool = new Pool($cache);
     $item = $pool->getItem('cache-script1');
     $minifier = new Minify\JS($path);
     $item = $minifier->cache($item);
     $this->assertEquals($item->get(), $content);
 }