@@ -251,6 +251,7 @@ public function testPreStoreResponseNoStore()
251251 $ httpCache = $ this ->getHttpCachePartialMock ();
252252 $ testListener = new TestListener ($ this , $ httpCache , $ request );
253253 $ testListener ->preStoreResponse = $ preStoreResponse ;
254+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
254255 $ httpCache ->addSubscriber ($ testListener );
255256
256257 $ store = $ this ->createMock (StoreInterface::class);
@@ -279,6 +280,7 @@ public function testPreInvalidateCalled(): void
279280
280281 $ httpCache = $ this ->getHttpCachePartialMock (['pass ' ]);
281282 $ testListener = new TestListener ($ this , $ httpCache , $ request );
283+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
282284 $ httpCache ->addSubscriber ($ testListener );
283285 $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
284286 $ httpCache
@@ -307,6 +309,7 @@ public function testPreInvalidateReturnEarly(): void
307309 $ httpCache = $ this ->getHttpCachePartialMock (['pass ' ]);
308310 $ testListener = new TestListener ($ this , $ httpCache , $ request );
309311 $ testListener ->preInvalidateResponse = $ response ;
312+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
310313 $ httpCache ->addSubscriber ($ testListener );
311314 $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
312315 $ httpCache
@@ -327,6 +330,7 @@ public function testAddListener(): void
327330
328331 $ httpCache = $ this ->getHttpCachePartialMock (['lookup ' ]);
329332 $ simpleListener = new SimpleListener ($ this , $ httpCache , $ request );
333+ $ this ->assertTrue (method_exists ($ httpCache , 'addListener ' ));
330334 $ httpCache ->addListener (Events::PRE_HANDLE , [$ simpleListener , 'callback ' ]);
331335
332336 $ httpCache
0 commit comments