public function InstantiationTest::testInstantiateWithClient in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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
Namespace
Behat\Mink\Tests\Driver\CustomCode
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());
}