/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $factory = new DebugCacheProviderDecoratorFactory();
     $this->decorator = $factory->create('array');
     $this->decorator->setProviderId(FetchCacheCollectedDataStub::PROVIDER_ID);
     DebugCacheProviderDecorator::$callId = 0;
     DebugCacheProviderDecorator::$collectedData = [];
 }
 /**
  * @inheritDoc
  */
 protected function setUp()
 {
     $factory = new DebugCacheProviderDecoratorFactory();
     $factory->setStopwatch(new Stopwatch());
     $this->decorator = $factory->create('array');
     DebugCacheProviderDecorator::$callId = 0;
     DebugCacheProviderDecorator::$collectedData = [];
     $rp = new \ReflectionProperty($this->decorator, 'cacheProviderDecorator');
     $rp->setAccessible(true);
     $cacheProviderDecorator = $rp->getValue($this->decorator);
     $rp = new \ReflectionProperty($cacheProviderDecorator, 'cacheProvider');
     $rp->setAccessible(true);
     /** @var CacheProvider $cacheProvider */
     $this->cacheProvider = $rp->getValue($cacheProviderDecorator);
 }
 /**
  * @test
  */
 public function WithoutCollectedData_getQueriesDetails_ReturnEmpty()
 {
     DebugCacheProviderDecorator::$collectedData = [];
     $this->cacheDataCollector->collect(Request::create('test'), Response::create());
     $this->assertCount(0, $this->cacheDataCollector->getQueriesDetails());
 }