You are here

public function FunctionsTest::testRemovesHeadersFromMessage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testRemovesHeadersFromMessage()

File

vendor/guzzlehttp/psr7/tests/FunctionsTest.php, line 571

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testRemovesHeadersFromMessage() {
  $r1 = new Psr7\Request('GET', 'http://foo.com', [
    'foo' => 'bar',
  ]);
  $r2 = Psr7\modify_request($r1, [
    'remove_headers' => [
      'foo',
    ],
  ]);
  $this
    ->assertNotSame($r1, $r2);
  $this
    ->assertFalse($r2
    ->hasHeader('foo'));
}