You are here

public function ClientTest::testGetCrawler 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::testGetCrawler()

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

File

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

Class

ClientTest

Namespace

Symfony\Component\BrowserKit\Tests

Code

public function testGetCrawler() {
  $client = new TestClient();
  $client
    ->setNextResponse(new Response('foo'));
  $crawler = $client
    ->request('GET', 'http://example.com/');
  $this
    ->assertSame($crawler, $client
    ->getCrawler(), '->getCrawler() returns the Crawler of the last request');
}