diff --git a/src/Test/EventDispatchingHttpCacheTestCase.php b/src/Test/EventDispatchingHttpCacheTestCase.php index 8cc80dad..a582f057 100644 --- a/src/Test/EventDispatchingHttpCacheTestCase.php +++ b/src/Test/EventDispatchingHttpCacheTestCase.php @@ -259,12 +259,10 @@ public function testPreStoreResponseNoStore() $refHttpCache = new \ReflectionClass(HttpCache::class); $refStore = $refHttpCache->getProperty('store'); - $refStore->setAccessible(true); $refStore->setValue($httpCache, $store); $refHttpCache = new \ReflectionObject($httpCache); $method = $refHttpCache->getMethod('store'); - $method->setAccessible(true); $method->invokeArgs($httpCache, [$request, $regularResponse]); $this->assertEquals(1, $testListener->preStoreCalls); }