You are here

BrowserKitConfig.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/behat/mink-browserkit-driver/tests/BrowserKitConfig.php

File

vendor/behat/mink-browserkit-driver/tests/BrowserKitConfig.php
View source
<?php

namespace Behat\Mink\Tests\Driver;

use Behat\Mink\Driver\BrowserKitDriver;
use Symfony\Component\HttpKernel\Client;
class BrowserKitConfig extends AbstractConfig {
  public static function getInstance() {
    return new self();
  }

  /**
   * {@inheritdoc}
   */
  public function createDriver() {
    $client = new Client(require __DIR__ . '/app.php');
    return new BrowserKitDriver($client);
  }

  /**
   * {@inheritdoc}
   */
  public function getWebFixturesUrl() {
    return 'http://localhost';
  }
  protected function supportsJs() {
    return false;
  }

}

Classes

Namesort descending Description
BrowserKitConfig