Skip to content

Commit 27e6f4c

Browse files
committed
[minor] test to ensure response headers/status dumped
1 parent 417c10b commit 27e6f4c

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/BrowserKitBrowserTests.php

+16
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,22 @@ public function can_dump_json_response_as_array(): void
271271
$this->assertStringContainsString(' "foo": "bar"', $output[0]);
272272
}
273273

274+
/**
275+
* @test
276+
*/
277+
public function dump_includes_headers_and_status(): void
278+
{
279+
$output = self::catchVarDumperOutput(function() {
280+
$this->browser()
281+
->visit('/page1')
282+
->dump()
283+
;
284+
});
285+
286+
$this->assertStringContainsString('(200)', $output[0]);
287+
$this->assertStringContainsString('content-type: text/html;', $output[0]);
288+
}
289+
274290
/**
275291
* @test
276292
*/

0 commit comments

Comments
 (0)