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