diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-01 15:07:27 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-01 15:07:27 +0100 |
commit | 364911316c742558f5e096a2e9f03b99d0ef29e7 (patch) | |
tree | 8cfa7e47c05b9d7524f8af48b50aa79f4d356ff3 /php-behat-mink-driver-testsuite-bootstrap.patch |
php-behat-mink: import from Fedora
Diffstat (limited to 'php-behat-mink-driver-testsuite-bootstrap.patch')
-rw-r--r-- | php-behat-mink-driver-testsuite-bootstrap.patch | 26 |
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 + |