Upgrade PHPUnit to 8.5 (php 7.2) and 9.3 (php >= 7.3).
authorAlexander M. Turek <me@derrabus.de>
Mon, 7 Sep 2020 20:06:42 +0000 (22:06 +0200)
committerAlexander M. Turek <me@derrabus.de>
Mon, 14 Sep 2020 06:11:19 +0000 (08:11 +0200)
phpunit
src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
src/Symfony/Bundle/FrameworkBundle/composer.json
src/Symfony/Component/Form/composer.json

diff --git a/phpunit b/phpunit
index 2b4412d..e1b1aea 100755 (executable)
--- a/phpunit
+++ b/phpunit
@@ -12,10 +12,10 @@ if (!getenv('SYMFONY_PHPUNIT_VERSION')) {
         if (false === getenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT') && false !== strpos(@file_get_contents(__DIR__.'/src/Symfony/Component/HttpKernel/Kernel.php'), 'const MAJOR_VERSION = 3;')) {
             putenv('SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1');
         }
-        if (\PHP_VERSION_ID >= 80000) {
-            putenv('SYMFONY_PHPUNIT_VERSION=9.3');
+        if (\PHP_VERSION_ID < 70300) {
+            putenv('SYMFONY_PHPUNIT_VERSION=8.5');
         } else {
-            putenv('SYMFONY_PHPUNIT_VERSION=8.3');
+            putenv('SYMFONY_PHPUNIT_VERSION=9.3');
         }
     } elseif (\PHP_VERSION_ID >= 70000) {
         putenv('SYMFONY_PHPUNIT_VERSION=6.5');
index b6d05cb..dc579e4 100644 (file)
@@ -49,8 +49,8 @@ class SymfonyTestsListenerTrait
             \PHPUnit_Util_Blacklist::$blacklistedClassNames[__CLASS__] = 2;
         } elseif (method_exists('PHPUnit\Util\Blacklist', 'addDirectory')) {
             eval(" // PHP 5.3 compat
-            (new BlackList())->getBlacklistedDirectories();
-            Blacklist::addDirectory(\dirname((new \ReflectionClass(__CLASS__))->getFileName(), 2));
+            (new \PHPUnit\Util\Blacklist())->getBlacklistedDirectories();
+            \PHPUnit\Util\Blacklist::addDirectory(\dirname(__FILE__, 2));
             ");
         } else {
             Blacklist::$blacklistedClassNames[__CLASS__] = 2;
index aad4e3f..c9750dc 100644 (file)
@@ -25,7 +25,7 @@
         "symfony/debug": "~2.8|~3.0|~4.0",
         "symfony/event-dispatcher": "~3.4|~4.0",
         "symfony/http-foundation": "^3.4.38|^4.3",
-        "symfony/http-kernel": "^3.4.31|^4.3.4",
+        "symfony/http-kernel": "^3.4.44|^4.3.4",
         "symfony/polyfill-mbstring": "~1.0",
         "symfony/filesystem": "~2.8|~3.0|~4.0",
         "symfony/finder": "~2.8|~3.0|~4.0",
index c69ac10..5e2010a 100644 (file)
@@ -26,7 +26,7 @@
     },
     "require-dev": {
         "doctrine/collections": "~1.0",
-        "symfony/validator": "^3.4.3|^4.0.3",
+        "symfony/validator": "^3.4.44|^4.0.3",
         "symfony/dependency-injection": "~3.3|~4.0",
         "symfony/config": "~2.7|~3.0|~4.0",
         "symfony/expression-language": "~3.4|~4.0",