summaryrefslogtreecommitdiffstats
path: root/mockery-tests.patch
blob: 301920478c4e4de86db7c14512335971e00b1f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;