You are here

public function RequestTest::testGetQueryStringReturnsNull in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/RequestTest.php \Symfony\Component\HttpFoundation\Tests\RequestTest::testGetQueryStringReturnsNull()

File

vendor/symfony/http-foundation/Tests/RequestTest.php, line 699

Class

RequestTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testGetQueryStringReturnsNull() {
  $request = new Request();
  $this
    ->assertNull($request
    ->getQueryString(), '->getQueryString() returns null for non-existent query string');
  $request->server
    ->set('QUERY_STRING', '');
  $this
    ->assertNull($request
    ->getQueryString(), '->getQueryString() returns null for empty query string');
}