public function testSaveBlock() { $key = sha1(rand()); $block = sha1(rand()); $this->cacheStrategy->method('saveBlock')->will($this->returnCallback(function ($a, $b) use($key, $block) { $this->assertSame($key, $a); $this->assertSame($block, $b); })); $this->object->saveBlock($key, $block); }
/** * Save the contents of a rendered block. * * @param mixed $key * @param string $block * * @return mixed */ public function saveBlock($key, $block) { return $this->cacheStrategy->saveBlock($key, $block); }