@@ -128,7 +128,7 @@ public function testCachePageIncomingRequest(): void
128
128
129
129
$ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
130
130
131
- $ this ->assertNull ( $ cachedResponse );
131
+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
132
132
}
133
133
134
134
public function testCachePageIncomingRequestWithCacheQueryString (): void
@@ -159,14 +159,14 @@ public function testCachePageIncomingRequestWithCacheQueryString(): void
159
159
$ request = $ this ->createIncomingRequest ('foo/bar ' , ['xfoo ' => 'bar ' , 'bar ' => 'baz ' ]);
160
160
$ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
161
161
162
- $ this ->assertNull ( $ cachedResponse );
162
+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
163
163
164
164
// Check cache with another request with the different URI path.
165
165
$ request = $ this ->createIncomingRequest ('another ' );
166
166
167
167
$ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
168
168
169
- $ this ->assertNull ( $ cachedResponse );
169
+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
170
170
}
171
171
172
172
public function testCachePageIncomingRequestWithHttpMethods (): void
@@ -186,7 +186,7 @@ public function testCachePageIncomingRequestWithHttpMethods(): void
186
186
$ request = $ this ->createIncomingRequest ('foo/bar ' )->withMethod ('POST ' );
187
187
$ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
188
188
189
- $ this ->assertNull ( $ cachedResponse );
189
+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
190
190
}
191
191
192
192
public function testCachePageCLIRequest (): void
@@ -214,7 +214,7 @@ public function testCachePageCLIRequest(): void
214
214
215
215
$ cachedResponse = $ pageCache ->get ($ request , new Response ($ this ->appConfig ));
216
216
217
- $ this ->assertNull ( $ cachedResponse );
217
+ $ this ->assertNotInstanceOf (ResponseInterface::class, $ cachedResponse );
218
218
}
219
219
220
220
public function testUnserializeError (): void
0 commit comments