You are here

public function FunctionsTest::testAddsQueryToUri in Zircon Profile 8.0

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

File

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

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testAddsQueryToUri() {
  $r1 = new Psr7\Request('GET', 'http://foo.com');
  $r2 = Psr7\modify_request($r1, [
    'query' => 'foo=bar',
  ]);
  $this
    ->assertNotSame($r1, $r2);
  $this
    ->assertEquals('foo=bar', $r2
    ->getUri()
    ->getQuery());
}