From 6ae9a865ffc5d89213e7e0dacc3e0133af2c8d1c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 31 Oct 2016 17:48:53 +0100 Subject: php-phpunit-PHPUnit: autoloader (very minor) fix, for phpci --- phpunit-5.4.0-Autoload.php.in | 5 ++++- 1 file changed, 4 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 6466fb8..93a47af 100644 --- a/phpunit-5.4.0-Autoload.php.in +++ b/phpunit-5.4.0-Autoload.php.in @@ -12,8 +12,11 @@ if (!class_exists('Fedora\\Autoloader\\Autoload', false)) { __DIR__ ); +/* don't use symfony autoloader which pull some unwanted stuff (polyfill) */ +$vendorDir = stream_resolve_include_path('Symfony/Component/Yaml/Yaml.php'); +\Fedora\Autoloader\Autoload::addPsr4('Symfony\\Component\\', dirname(dirname($vendorDir))); + /* Required */ -require_once 'Symfony/Component/autoload.php'; require_once 'File/Iterator/Autoload.php'; require_once 'SebastianBergmann/CodeCoverage/autoload.php'; require_once 'PHP/Timer/Autoload.php'; -- cgit