/**
  * @test
  */
 public function Save_SaveWithLifeTime()
 {
     $this->assertTrue($this->emptyCacheProviderDecorator->save(CacheProviderMock::ID, CacheProviderMock::DATA, self::LIFE_TIME));
     $this->assertTrue($this->emptyCacheProvider->doSaveHasBeenCalled);
     $this->assertEquals(self::EXPECTED_ID, $this->emptyCacheProvider->id);
     $this->assertEquals(CacheProviderMock::DATA, $this->emptyCacheProvider->data);
     $this->assertEquals(self::LIFE_TIME, $this->emptyCacheProvider->lifeTime);
 }
 /**
  * {@inheritdoc}
  */
 public function save($id, $data, $lifeTime = null)
 {
     $start = $this->startQuery();
     $saved = $this->cacheProviderDecorator->save($id, $data, $lifeTime);
     $stop = $this->stopQuery();
     self::$collectedData[self::$callId++] = $this->create(CacheCollectedData::SAVE)->withData($data)->withId($id)->withStart($start)->withStop($stop)->build();
     return $saved;
 }
 /**
  * @inheritDoc
  */
 public function save($id, $data, $lifeTime = null)
 {
     return $this->cacheProviderDecorator->save($id, $data, $lifeTime);
 }