summaryrefslogtreecommitdiffstats
path: root/phpunit9-rpm.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-02-04 09:16:24 +0100
committerRemi Collet <remi@php.net>2023-02-04 09:16:24 +0100
commit96225efc88581c161f61c6777a15382f2cde0acb (patch)
tree3aa7d73dd02ace1f7a5cd835eafaab96c2af5452 /phpunit9-rpm.patch
parentdedbc3944f741f493cc4d2a748b4988951ea35c4 (diff)
update to 9.6.2
Diffstat (limited to 'phpunit9-rpm.patch')
-rw-r--r--phpunit9-rpm.patch13
1 files changed, 9 insertions, 4 deletions
diff --git a/phpunit9-rpm.patch b/phpunit9-rpm.patch
index 0360db7..be09111 100644
--- a/phpunit9-rpm.patch
+++ b/phpunit9-rpm.patch
@@ -33,15 +33,20 @@ diff -up ./phpunit.rpm ./phpunit
}
$options = getopt('', array('prepend:'));
-@@ -95,4 +79,8 @@ unset($options);
+@@ -95,4 +79,13 @@ unset($options);
require PHPUNIT_COMPOSER_INSTALL;
-PHPUnit\TextUI\Command::main();
-+if (class_exists('PHPUnit_TextUI_Command')) {
-+ PHPUnit_TextUI_Command::main(); // PHPUnit v5 or older
++if (class_exists('PHPUnit\\TextUI\\Application')) {
++ // PHPUnit v10 or newer
++ exit((new PHPUnit\TextUI\Application)->run($_SERVER['argv']));
++} else if (class_exists('PHPUnit_TextUI_Command')) {
++ // PHPUnit v5 or older
++ PHPUnit_TextUI_Command::main();
+} else {
-+ PHPUnit\TextUI\Command::main(); // PHPUnit v6 or newer
++ // PHPUnit v6 to v9
++ PHPUnit\TextUI\Command::main();
+}
diff -up ./src/Util/Xml/SchemaFinder.php.rpm ./src/Util/Xml/SchemaFinder.php
--- ./src/Util/Xml/SchemaFinder.php.rpm 2021-12-30 09:04:15.000000000 +0100