@@ -251,6 +251,7 @@ public function testPreStoreResponseNoStore()
251
251
$ httpCache = $ this ->getHttpCachePartialMock ();
252
252
$ testListener = new TestListener ($ this , $ httpCache , $ request );
253
253
$ testListener ->preStoreResponse = $ preStoreResponse ;
254
+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
254
255
$ httpCache ->addSubscriber ($ testListener );
255
256
256
257
$ store = $ this ->createMock (StoreInterface::class);
@@ -279,6 +280,7 @@ public function testPreInvalidateCalled(): void
279
280
280
281
$ httpCache = $ this ->getHttpCachePartialMock (['pass ' ]);
281
282
$ testListener = new TestListener ($ this , $ httpCache , $ request );
283
+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
282
284
$ httpCache ->addSubscriber ($ testListener );
283
285
$ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
284
286
$ httpCache
@@ -307,6 +309,7 @@ public function testPreInvalidateReturnEarly(): void
307
309
$ httpCache = $ this ->getHttpCachePartialMock (['pass ' ]);
308
310
$ testListener = new TestListener ($ this , $ httpCache , $ request );
309
311
$ testListener ->preInvalidateResponse = $ response ;
312
+ $ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
310
313
$ httpCache ->addSubscriber ($ testListener );
311
314
$ this ->assertTrue (method_exists ($ httpCache , 'addSubscriber ' ));
312
315
$ httpCache
@@ -327,6 +330,7 @@ public function testAddListener(): void
327
330
328
331
$ httpCache = $ this ->getHttpCachePartialMock (['lookup ' ]);
329
332
$ simpleListener = new SimpleListener ($ this , $ httpCache , $ request );
333
+ $ this ->assertTrue (method_exists ($ httpCache , 'addListener ' ));
330
334
$ httpCache ->addListener (Events::PRE_HANDLE , [$ simpleListener , 'callback ' ]);
331
335
332
336
$ httpCache
0 commit comments