You are here

public function CoreDriver::setBasicAuth in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Driver/CoreDriver.php \Behat\Mink\Driver\CoreDriver::setBasicAuth()

Sets HTTP Basic authentication parameters.

Parameters

string|Boolean $user user name or false to disable authentication:

string $password password:

Throws

UnsupportedDriverActionException When operation not supported by the driver

DriverException When the operation cannot be done

Overrides DriverInterface::setBasicAuth

2 methods override CoreDriver::setBasicAuth()
BrowserKitDriver::setBasicAuth in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Sets HTTP Basic authentication parameters.
PhantomJSDriver::setBasicAuth in vendor/jcalderonzumba/mink-phantomjs-driver/src/PhantomJSDriver.php
Sets the basic auth user and password

File

vendor/behat/mink/src/Driver/CoreDriver.php, line 255

Class

CoreDriver
Core driver. All other drivers should extend this class for future compatibility.

Namespace

Behat\Mink\Driver

Code

public function setBasicAuth($user, $password) {
  throw new UnsupportedDriverActionException('Basic auth setup is not supported by %s', $this);
}