From af939f9aa53a172e31540a9eafcbc0a4694a420b Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Tue, 18 Aug 2015 00:00:47 -0400 Subject: [PATCH] Make paths to runkit_import() absolute due to lack of include path. --- tests/PhpseclibTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/PhpseclibTestCase.php b/tests/PhpseclibTestCase.php index 4dc28b9a..8f594e04 100644 --- a/tests/PhpseclibTestCase.php +++ b/tests/PhpseclibTestCase.php @@ -82,7 +82,7 @@ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase } /** - * @param string $filename + * @param string $filename Filename relative to library directory. * * @return null */ @@ -90,7 +90,7 @@ abstract class PhpseclibTestCase extends PHPUnit_Framework_TestCase { if (function_exists('runkit_import')) { $result = runkit_import( - $filename, + sprintf('%s/../phpseclib/%s', __DIR__, $filename), RUNKIT_IMPORT_FUNCTIONS | RUNKIT_IMPORT_CLASS_METHODS | RUNKIT_IMPORT_OVERRIDE