summaryrefslogtreecommitdiffstats
path: root/phpunit-5.4.0-Autoload.php.in
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-10-31 17:48:53 +0100
committerRemi Collet <fedora@famillecollet.com>2016-10-31 17:48:53 +0100
commit6ae9a865ffc5d89213e7e0dacc3e0133af2c8d1c (patch)
tree09f251f7344027d05100243401741a2a7d81de16 /phpunit-5.4.0-Autoload.php.in
parent15fc400691d0cfe3dec58e19b99568904cf63972 (diff)
php-phpunit-PHPUnit: autoloader (very minor) fix, for phpci
Diffstat (limited to 'phpunit-5.4.0-Autoload.php.in')
-rw-r--r--phpunit-5.4.0-Autoload.php.in5
1 files changed, 4 insertions, 1 deletions
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';