File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ $browser
227227 ->assertRedirected() // 3xx status code
228228 ->assertHeaderEquals('Content-Type', 'text/html; charset=UTF-8')
229229 ->assertHeaderContains('Content-Type', 'html')
230+ ->assertHeaderEquals('X-Not-Present-Header', null)
230231
231232 // helpers for quickly checking the content type
232233 ->assertJson()
Original file line number Diff line number Diff line change @@ -414,7 +414,7 @@ final public function assertRedirected(): self
414414 /**
415415 * @return static
416416 */
417- final public function assertHeaderEquals (string $ header , string $ expected ): self
417+ final public function assertHeaderEquals (string $ header , ? string $ expected ): self
418418 {
419419 $ this ->session ()->assert ()->responseHeaderEquals ($ header , $ expected );
420420
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ public function response_header_assertions(): void
233233 ->visit ('/page1 ' )
234234 ->assertHeaderEquals ('Content-Type ' , 'text/html; charset=UTF-8 ' )
235235 ->assertHeaderContains ('Content-Type ' , 'text/html ' )
236+ ->assertHeaderEquals ('X-Not-Present-Header ' , null )
236237 ;
237238 }
238239
You can’t perform that action at this time.
0 commit comments