diff options
author | Remi Collet <remi@remirepo.net> | 2020-10-29 14:52:15 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-10-29 14:52:15 +0100 |
commit | 22f08fe592d14afb364baf0cb0f22ce9d1e17390 (patch) | |
tree | dc5b195ae329f5f6af51c2d73b8d23cb99401596 /mockery-tests.patch | |
parent | ef4b4cf7b1d26a6836c56e02185247d167af0b9b (diff) |
run test suite with both phpunit 8 and 9
Diffstat (limited to 'mockery-tests.patch')
-rw-r--r-- | mockery-tests.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/mockery-tests.patch b/mockery-tests.patch new file mode 100644 index 0000000..3019204 --- /dev/null +++ b/mockery-tests.patch @@ -0,0 +1,18 @@ +diff -up ./tests/Bootstrap.php.rpm ./tests/Bootstrap.php +--- ./tests/Bootstrap.php.rpm 2018-05-08 10:54:48.000000000 +0200 ++++ ./tests/Bootstrap.php 2018-05-13 10:39:38.471383840 +0200 +@@ -50,11 +50,9 @@ 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; ++require_once __DIR__ . '/classmap.php'; ++ ++$hamcrestPath = '/usr/share/php/Hamcrest2/Hamcrest.php'; + + require_once $hamcrestPath; + |