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); }