3 namespace Behat\Mink\Tests\Driver;
5 use Zumba\Mink\Driver\PhantomJSDriver;
8 * Class PhantomJSConfig
9 * @package Behat\Mink\Tests\Driver
11 class PhantomJSConfig extends AbstractConfig {
14 * @return PhantomJSConfig
16 public static function getInstance() {
23 protected function supportsCss() {
30 protected function supportsJs() {
37 public function createDriver() {
38 $phantomJSHost = $_SERVER["DRIVER_URL"];
39 return new PhantomJSDriver($phantomJSHost, $_SERVER["TEMPLATE_CACHE_DIR"]);
43 * @param string $testCase
47 public function skipMessage($testCase, $test) {
48 if ($testCase == "Behat\\Mink\\Tests\\Driver\\Basic\\BasicAuthTest" && $test == "testSetBasicAuth") {
49 //TODO: Fix this error
50 return "TODO: figure out why when sending a bad user is still giving the good login";
53 if ($testCase == "Behat\\Mink\\Tests\\Driver\\Form\\Html5Test" && $test == "testHtml5Types") {
55 return "TODO: phantomjs does not seem to deal with the color type properly";
58 return parent::skipMessage($testCase, $test);