summaryrefslogtreecommitdiffstats
path: root/mockery-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-01-22 11:10:49 +0100
committerRemi Collet <remi@remirepo.net>2018-01-22 11:10:49 +0100
commiteaf2efe5dbe08d49e674a904aed46b05f75a02bd (patch)
tree1e0e70f148c0bd5845b2c70ba2208d3992ef3378 /mockery-tests.patch
parentd30532646e05be2d361348ba6287e51346e2069f (diff)
Update to 1.0
rename to php-mockery and move to /usr/share/php/Mockery1 raise dependency on PHP 5.6 raise dependency on hamcrest/hamcrest-php 2.0 use phpunit6 on F26+
Diffstat (limited to 'mockery-tests.patch')
-rw-r--r--mockery-tests.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/mockery-tests.patch b/mockery-tests.patch
new file mode 100644
index 0000000..4955127
--- /dev/null
+++ b/mockery-tests.patch
@@ -0,0 +1,16 @@
+diff -up tests/Bootstrap.php.rpm tests/Bootstrap.php
+--- tests/Bootstrap.php.rpm 2018-01-22 10:30:27.396051495 +0100
++++ tests/Bootstrap.php 2018-01-22 10:36:43.834985419 +0100
+@@ -50,11 +50,7 @@ if (!file_exists($autoloadPath)) {
+
+ require_once $autoloadPath;
+
+-$hamcrestRelativePath = 'hamcrest/hamcrest-php/hamcrest/Hamcrest.php';
+-if (DIRECTORY_SEPARATOR !== '/') {
+- $hamcrestRelativePath = str_replace('/', DIRECTORY_SEPARATOR, $hamcrestRelativePath);
+-}
+-$hamcrestPath = $composerVendorDirectory . DIRECTORY_SEPARATOR . $hamcrestRelativePath;
++$hamcrestPath = '/usr/share/php/Hamcrest2/Hamcrest.php';
+
+ require_once $hamcrestPath;
+