blob: 8dc59f7d196c7a92c936c374feb89dfc98e878b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
diff -up tests/Bootstrap.php.rpm tests/Bootstrap.php
--- tests/Bootstrap.php.rpm 2015-10-16 08:42:02.861800156 +0200
+++ tests/Bootstrap.php 2015-10-16 08:49:18.755612204 +0200
@@ -29,13 +29,13 @@ error_reporting(E_ALL);
* distribution.
*/
$root = realpath(dirname(dirname(__FILE__)));
-$library = "$root/library";
+$library = "@BUILD@";
$tests = "$root/tests";
/**
* Check that --dev composer installation was done
*/
-if (!file_exists($root . '/vendor/autoload.php')) {
+if (!file_exists($library . '/Mockery/autoload.php')) {
throw new Exception(
'Please run "php composer.phar install --dev" in root directory '
. 'to setup unit test dependencies before running the tests'
@@ -54,7 +54,7 @@ $path = array(
);
set_include_path(implode(PATH_SEPARATOR, $path));
-require_once "$root/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest.php";
+require_once '/usr/share/php/Hamcrest/Hamcrest.php';
if (defined('TESTS_GENERATE_REPORT') && TESTS_GENERATE_REPORT === true &&
version_compare(PHPUnit_Runner_Version::id(), '3.1.6', '>=')) {
@@ -77,7 +77,7 @@ if (defined('TESTS_GENERATE_REPORT') &&
PHPUnit_Util_Filter::addDirectoryToFilter(PHP_LIBDIR);
}
-require __DIR__.'/../vendor/autoload.php';
+require $library . '/Mockery/autoload.php';
/*
* Unset global variables that are no longer needed.
|