summaryrefslogtreecommitdiffstats
path: root/bootstrap-autoload.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-01-05 14:38:00 +0100
committerRemi Collet <fedora@famillecollet.com>2015-01-05 14:38:00 +0100
commitd1044842af5ad9489d8982e390615675c45340b0 (patch)
treef4a6caad76e14859ae4680eeaf4811cd153b14c6 /bootstrap-autoload.patch
php-hamcrest: 1.2.0 - New package
Diffstat (limited to 'bootstrap-autoload.patch')
-rw-r--r--bootstrap-autoload.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/bootstrap-autoload.patch b/bootstrap-autoload.patch
new file mode 100644
index 0000000..49cad37
--- /dev/null
+++ b/bootstrap-autoload.patch
@@ -0,0 +1,18 @@
+diff -up tests/bootstrap.php.rpm tests/bootstrap.php
+--- tests/bootstrap.php.rpm 2015-01-05 13:27:31.069437796 +0100
++++ tests/bootstrap.php 2015-01-05 13:27:40.291470405 +0100
+@@ -1,6 +1,7 @@
+ <?php
+ error_reporting(E_ALL | E_STRICT);
+-require __DIR__ . '/../vendor/autoload.php';
++require __DIR__ . '/../hamcrest/Hamcrest/autoload.php';
++require __DIR__ . '/autoload.php';
+
+ if (defined('E_DEPRECATED')) {
+ error_reporting(error_reporting() | E_DEPRECATED);
+@@ -14,5 +15,3 @@ set_include_path(implode(PATH_SEPARATOR,
+ HAMCREST_BASE . '/hamcrest',
+ get_include_path()
+ )));
+-
+-require_once 'Hamcrest.php';