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.