From 60e76f54e49b8482ee71515600ae252ab38d643a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 16 Oct 2015 09:14:43 +0200 Subject: php-deepend-Mockery: 0.9.4 --- mockery-tests.patch | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 mockery-tests.patch (limited to 'mockery-tests.patch') diff --git a/mockery-tests.patch b/mockery-tests.patch new file mode 100644 index 0000000..8dc59f7 --- /dev/null +++ b/mockery-tests.patch @@ -0,0 +1,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. -- cgit