@@ -128,7 +128,7 @@ public function testCachePageIncomingRequest(): void
128128
129129 $ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
130130
131- $ this ->assertNull ( $ cachedResponse );
131+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
132132 }
133133
134134 public function testCachePageIncomingRequestWithCacheQueryString (): void
@@ -159,14 +159,14 @@ public function testCachePageIncomingRequestWithCacheQueryString(): void
159159 $ request = $ this ->createIncomingRequest ('foo/bar ' , ['xfoo ' => 'bar ' , 'bar ' => 'baz ' ]);
160160 $ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
161161
162- $ this ->assertNull ( $ cachedResponse );
162+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
163163
164164 // Check cache with another request with the different URI path.
165165 $ request = $ this ->createIncomingRequest ('another ' );
166166
167167 $ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
168168
169- $ this ->assertNull ( $ cachedResponse );
169+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
170170 }
171171
172172 public function testCachePageIncomingRequestWithHttpMethods (): void
@@ -186,7 +186,7 @@ public function testCachePageIncomingRequestWithHttpMethods(): void
186186 $ request = $ this ->createIncomingRequest ('foo/bar ' )->withMethod ('POST ' );
187187 $ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
188188
189- $ this ->assertNull ( $ cachedResponse );
189+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
190190 }
191191
192192 public function testCachePageCLIRequest (): void
@@ -214,7 +214,7 @@ public function testCachePageCLIRequest(): void
214214
215215 $ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
216216
217- $ this ->assertNull ( $ cachedResponse );
217+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
218218 }
219219
220220 public function testUnserializeError (): void
0 commit comments