AbstractConfig.php in Zircon Profile 8
File
vendor/behat/mink/driver-testsuite/tests/AbstractConfig.php
View source
<?php
namespace Behat\Mink\Tests\Driver;
use Behat\Mink\Driver\DriverInterface;
abstract class AbstractConfig {
public abstract function createDriver();
public function mapRemoteFilePath($file) {
if (!isset($_SERVER['TEST_MACHINE_BASE_PATH']) || !isset($_SERVER['DRIVER_MACHINE_BASE_PATH'])) {
return $file;
}
$pattern = '/^' . preg_quote($_SERVER['TEST_MACHINE_BASE_PATH'], '/') . '/';
$basePath = $_SERVER['DRIVER_MACHINE_BASE_PATH'];
return preg_replace($pattern, $basePath, $file, 1);
}
public function getWebFixturesUrl() {
return $_SERVER['WEB_FIXTURES_HOST'];
}
public function skipMessage($testCase, $test) {
if (!$this
->supportsCss() && 0 === strpos($testCase, 'Behat\\Mink\\Tests\\Driver\\Css\\')) {
return 'This driver does not support CSS.';
}
if (!$this
->supportsJs() && 0 === strpos($testCase, 'Behat\\Mink\\Tests\\Driver\\Js\\')) {
return 'This driver does not support JavaScript.';
}
return null;
}
protected function supportsJs() {
return true;
}
protected function supportsCss() {
return false;
}
}