You are here

public function InstantiationTest::testInstantiateWithClient in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink-goutte-driver/tests/Custom/InstantiationTest.php \Behat\Mink\Tests\Driver\Custom\InstantiationTest::testInstantiateWithClient()

File

vendor/behat/mink-goutte-driver/tests/Custom/InstantiationTest.php, line 9

Class

InstantiationTest

Namespace

Behat\Mink\Tests\Driver\Custom

Code

public function testInstantiateWithClient() {
  $client = $this
    ->getMockBuilder('Goutte\\Client')
    ->disableOriginalConstructor()
    ->getMock();
  $client
    ->expects($this
    ->once())
    ->method('followRedirects')
    ->with(true);
  $driver = new GoutteDriver($client);
  $this
    ->assertSame($client, $driver
    ->getClient());
}