You are here

public function ClientTest::testGetScript in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/ClientTest.php \Symfony\Component\HttpKernel\Tests\ClientTest::testGetScript()

File

vendor/symfony/http-kernel/Tests/ClientTest.php, line 42

Class

ClientTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testGetScript() {
  $client = new TestClient(new TestHttpKernel());
  $client
    ->insulate();
  $client
    ->request('GET', '/');
  $this
    ->assertEquals('Request: /', $client
    ->getResponse()
    ->getContent(), '->getScript() returns a script that uses the request handler to make the request');
}