Version 1
[yaffs-website] / vendor / behat / mink-browserkit-driver / tests / BrowserKitConfig.php
diff --git a/vendor/behat/mink-browserkit-driver/tests/BrowserKitConfig.php b/vendor/behat/mink-browserkit-driver/tests/BrowserKitConfig.php
new file mode 100644 (file)
index 0000000..b80a2fb
--- /dev/null
@@ -0,0 +1,37 @@
+<?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;
+    }
+}