You are here

public function ClientTest::testCreatesResponse in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/fabpot/goutte/Goutte/Tests/ClientTest.php \Goutte\Tests\ClientTest::testCreatesResponse()

File

vendor/fabpot/goutte/Goutte/Tests/ClientTest.php, line 295

Class

ClientTest
Goutte Client Test.

Namespace

Goutte\Tests

Code

public function testCreatesResponse() {
  $guzzle = $this
    ->getGuzzle();
  $client = new Client();
  $client
    ->setClient($guzzle);
  $crawler = $client
    ->request('GET', 'http://www.example.com/');
  $this
    ->assertEquals('Hi', $crawler
    ->filter('p')
    ->text());
}