예제 #1
0
 private function mockWithPhpUnit()
 {
     $this->storage = $this->getMockBuilder(StorageInterface::class)->disableOriginalConstructor()->getMock();
     $this->cache = new DelayedCache($this->storage);
     $this->cache->setWaiter($this->waiter->reveal());
     return $this->storage;
 }