You are here

public function FunctionsTest::testEncodesWithRfc1738 in Zircon Profile 8

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

File

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

Class

FunctionsTest

Namespace

GuzzleHttp\Tests\Psr7

Code

public function testEncodesWithRfc1738() {
  $str = Psr7\build_query([
    'foo bar' => 'baz+',
  ], PHP_QUERY_RFC1738);
  $this
    ->assertEquals('foo+bar=baz%2B', $str);
}