/**
  * @test
  */
 public function Invalidate_ReturnTrue()
 {
     $this->emptyCacheProvider->save(CacheProviderMock::NAMESPACE_ID, CacheProviderMock::NAMESPACE_ID_VALUE);
     $this->emptyCacheProvider->save(CacheProviderMock::NAMESPACE_ID_VALUE . CacheProviderMock::ID, CacheProviderMock::NAMESPACE_DATA);
     $invalidated = $this->emptyCacheProviderDecorator->invalidate(CacheProviderMock::NAMESPACE_ID);
     $this->assertTrue($invalidated);
     $this->assertTrue($this->emptyCacheProvider->doSaveHasBeenCalled);
 }
 /**
  * {@inheritdoc}
  */
 public function invalidate($namespaceId)
 {
     $start = $this->startQuery();
     $invalidated = $this->cacheProviderDecorator->invalidate($namespaceId);
     $stop = $this->stopQuery();
     self::$collectedData[self::$callId++] = $this->create(CacheCollectedData::INVALIDATE)->withNamespaceId($namespaceId)->withStart($start)->withStop($stop)->build();
     return $invalidated;
 }
 /**
  * @inheritDoc
  */
 public function invalidate($namespaceId)
 {
     return $this->cacheProviderDecorator->invalidate($namespaceId);
 }