Skip to content

Commit b075944

Browse files
committed
fix symfony 6.1 partial mocking
1 parent 3e441c6 commit b075944

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Test/EventDispatchingHttpCacheTestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ protected function getHttpCachePartialMock(array $mockedMethods = null)
7272
$refOptions->setAccessible(true);
7373
$refOptions->setValue($mock, $options);
7474

75+
$surrogate = $refHttpCache->getProperty('surrogate');
76+
$surrogate->setAccessible(true);
77+
$surrogate->setValue($mock, null);
78+
7579
return $mock;
7680
}
7781

0 commit comments

Comments
 (0)