From ab8bc1f980d8a3208d63e16223c941c4759925e3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 7 Feb 2017 12:11:27 +0100 Subject: php-phpunit-PHPUnit: cleanup for upcoming v6 --- phpunit-5.4.0-Autoload.php.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'phpunit-5.4.0-Autoload.php.in') diff --git a/phpunit-5.4.0-Autoload.php.in b/phpunit-5.4.0-Autoload.php.in index 93a47af..baffe2c 100644 --- a/phpunit-5.4.0-Autoload.php.in +++ b/phpunit-5.4.0-Autoload.php.in @@ -12,8 +12,9 @@ if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { __DIR__ ); +$sym = (getenv('RPM_SYMFONY_TREE') ?: 'Symfony'); /* don't use symfony autoloader which pull some unwanted stuff (polyfill) */ -$vendorDir = stream_resolve_include_path('Symfony/Component/Yaml/Yaml.php'); +$vendorDir = stream_resolve_include_path("$sym/Component/Yaml/Yaml.php"); \Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($vendorDir))); /* Required */ -- cgit