]> Raphaël G. Git Repositories - blog/commitdiff
Update to symfony 7.0.0
authorRaphaël Gertz <git@rapsys.eu>
Wed, 29 Nov 2023 14:57:40 +0000 (15:57 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Wed, 29 Nov 2023 14:57:40 +0000 (15:57 +0100)
bin/phpunit
composer.json
symfony.lock

index f26f2c727c1de0dbd2ecf4603237ce368b801913..692baccb64749a49d4170d568bf6ef681ac014d5 100755 (executable)
@@ -6,9 +6,13 @@ if (!ini_get('date.timezone')) {
 }
 
 if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
 }
 
 if (is_file(dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit')) {
-    define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
-    require PHPUNIT_COMPOSER_INSTALL;
-    PHPUnit\TextUI\Command::main();
+    if (PHP_VERSION_ID >= 80000) {
+        require dirname(__DIR__).'/vendor/phpunit/phpunit/phpunit';
+    } else {
+        define('PHPUNIT_COMPOSER_INSTALL', dirname(__DIR__).'/vendor/autoload.php');
+        require PHPUNIT_COMPOSER_INSTALL;
+        PHPUnit\TextUI\Command::main();
+    }
 } else {
     if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
         echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
 } else {
     if (!is_file(dirname(__DIR__).'/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
         echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
index 07114345e32bc86d5fcad6528bfa2f6c37059bc2..980b1ec493876e825c847a8ce644bdd4389435d8 100644 (file)
     "require-dev": {
         "doctrine/doctrine-fixtures-bundle": "*",
         "phpunit/phpunit": "^9.0|^10.0",
     "require-dev": {
         "doctrine/doctrine-fixtures-bundle": "*",
         "phpunit/phpunit": "^9.0|^10.0",
-        "symfony/browser-kit": "^6.0",
-        "symfony/css-selector": "^6.0",
-        "symfony/debug-bundle": "^6.0",
+        "symfony/browser-kit": "^6.0|^7.0",
+        "symfony/css-selector": "^6.0|^7.0",
+        "symfony/debug-bundle": "^6.0|^7.0",
         "symfony/maker-bundle": "^1.0",
         "symfony/maker-bundle": "^1.0",
-        "symfony/phpunit-bridge": "^6.0",
-        "symfony/stopwatch": "^6.0",
-        "symfony/web-profiler-bundle": "^6.0"
+        "symfony/phpunit-bridge": "^6.0|^7.0",
+        "symfony/stopwatch": "^6.0|^7.0",
+        "symfony/web-profiler-bundle": "^6.0|^7.0"
     }
 }
     }
 }
index d2927aae35cfd1b9ab94cc34ab21aef632cfbabe..c28a7153004361308ecd65b287a2a677c814abb3 100644 (file)
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "6.3",
             "repo": "github.com/symfony/recipes",
             "branch": "main",
             "version": "6.3",
-            "ref": "01dfaa98c58f7a7b5a9b30e6edb7074af7ed9819"
+            "ref": "5e6e46e7bd453880707d920c99be0da5afaaaa22"
         },
         "files": [
             ".env.test",
         },
         "files": [
             ".env.test",