summaryrefslogtreecommitdiffstats
path: root/php-behat-mink-driver-testsuite-bootstrap.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-behat-mink-driver-testsuite-bootstrap.patch')
-rw-r--r--php-behat-mink-driver-testsuite-bootstrap.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/php-behat-mink-driver-testsuite-bootstrap.patch b/php-behat-mink-driver-testsuite-bootstrap.patch
new file mode 100644
index 0000000..7ed656b
--- /dev/null
+++ b/php-behat-mink-driver-testsuite-bootstrap.patch
@@ -0,0 +1,26 @@
+diff --git a/driver-testsuite/bootstrap.php b/driver-testsuite/bootstrap.php
+index f69a45b..ff6c7d1 100644
+--- a/driver-testsuite/bootstrap.php
++++ b/driver-testsuite/bootstrap.php
+@@ -1,20 +1,6 @@
+ <?php
+
+-$file = __DIR__.'/../../../autoload.php';
+-
+-if (!file_exists($file)) {
+- echo PHP_EOL.'The Mink driver testsuite expects Mink to be installed as a composer dependency of your project'.PHP_EOL;
+- exit(1);
+-}
+-
+-/** @var \Composer\Autoload\ClassLoader $loader */
+-$loader = require $file;
+-
+-$loader->addPsr4('Behat\Mink\Tests\Driver\\', __DIR__.'/tests');
+-
+-// Clean the global variables
+-unset($file);
+-unset($loader);
++require_once __DIR__ . '/autoload.php';
+
+ // Check the definition of the driverLoaderFactory
+