diff options
-rw-r--r-- | php-phpunit-PHPUnit.spec | 5 | ||||
-rw-r--r-- | phpunit-5.4.0-Autoload.php.in | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/php-phpunit-PHPUnit.spec b/php-phpunit-PHPUnit.spec index cd1ca2a..eea83d2 100644 --- a/php-phpunit-PHPUnit.spec +++ b/php-phpunit-PHPUnit.spec @@ -18,7 +18,7 @@ %global pear_channel pear.phpunit.de %global major 5.6 %global minor 2 -%global specrel 1 +%global specrel 2 Name: php-phpunit-PHPUnit Version: %{major}.%{minor} @@ -237,6 +237,9 @@ fi %changelog +* Mon Oct 31 2016 Remi Collet <remi@fedoraproject.org> - 5.6.2-2 +- fix autoloader (don't use symfony one for symfony components) + * Tue Oct 25 2016 Remi Collet <remi@fedoraproject.org> - 5.6.2-1 - update to 5.6.2 (no change) - switch to fedora/autoloader 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'; |