public function ClientTest::testGetCrawler in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
Symfony\Component\BrowserKit\TestsCode
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');
}