You are here

public function ClientTest::testGetRequest in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/browser-kit/Tests/ClientTest.php \Symfony\Component\BrowserKit\Tests\ClientTest::testGetRequest()

@covers Symfony\Component\BrowserKit\Client::getRequest

File

vendor/symfony/browser-kit/Tests/ClientTest.php, line 97

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetRequest() {
  $client = new TestClient();
  $client
    ->request('GET', 'http://example.com/');
  $this
    ->assertEquals('http://example.com/', $client
    ->getRequest()
    ->getUri(), '->getCrawler() returns the Request of the last request');
}