summaryrefslogtreecommitdiffstats
path: root/phpunit-5.4.0-Autoload.php.in
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-07 12:11:27 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-07 12:11:27 +0100
commitab8bc1f980d8a3208d63e16223c941c4759925e3 (patch)
tree10a05fd313d3c0e97cc77c3a67a61f4ddc868973 /phpunit-5.4.0-Autoload.php.in
parent786cf1ad23ec77412757fec5346d1f9e2ed1e210 (diff)
php-phpunit-PHPUnit: cleanup for upcoming v6
Diffstat (limited to 'phpunit-5.4.0-Autoload.php.in')
-rw-r--r--phpunit-5.4.0-Autoload.php.in3
1 files changed, 2 insertions, 1 deletions
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 */