public function FunctionsTest::testCanControlDecodingType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/guzzlehttp/psr7/tests/FunctionsTest.php \GuzzleHttp\Tests\Psr7\FunctionsTest::testCanControlDecodingType()
File
- vendor/
guzzlehttp/ psr7/ tests/ FunctionsTest.php, line 230
Class
Namespace
GuzzleHttp\Tests\Psr7Code
public function testCanControlDecodingType() {
$result = Psr7\parse_query('var=foo+bar', PHP_QUERY_RFC3986);
$this
->assertEquals('foo+bar', $result['var']);
$result = Psr7\parse_query('var=foo+bar', PHP_QUERY_RFC1738);
$this
->assertEquals('foo bar', $result['var']);
}