Skip to content

Commit 45736b5

Browse files
committed
added support for default headers in Browser PHP and moved default header user-agent to the default headers.
1 parent bb507a3 commit 45736b5

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

tests/BrowserTest.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -504,19 +504,6 @@ public function testCancelGetRequestShouldCancelUnderlyingSocketConnection()
504504
$promise->cancel();
505505
}
506506

507-
public function testWithElseHeader()
508-
{
509-
$this->browser = $this->browser->withHeader('User-Agent', 'ACMC');
510-
511-
$that = $this;
512-
$this->sender->expects($this->once())->method('send')->with($this->callback(function (RequestInterface $request) use ($that) {
513-
$that->assertEquals(array('ACMC'), $request->getHeader('User-Agent'));
514-
return true;
515-
}))->willReturn(new Promise(function () { }));
516-
517-
$this->browser->get('http://example.com/');
518-
}
519-
520507
public function testWithHeaderShouldOverwriteExistingHeader()
521508
{
522509
$this->browser = $this->browser->withHeader('User-Agent', 'ACMC'); //should be overwritten

0 commit comments

Comments
 (0)