summaryrefslogtreecommitdiffstats
path: root/phpunit10-rpm.patch
diff options
context:
space:
mode:
Diffstat (limited to 'phpunit10-rpm.patch')
-rw-r--r--phpunit10-rpm.patch22
1 files changed, 12 insertions, 10 deletions
diff --git a/phpunit10-rpm.patch b/phpunit10-rpm.patch
index 2e82286..9ddfc8c 100644
--- a/phpunit10-rpm.patch
+++ b/phpunit10-rpm.patch
@@ -1,7 +1,7 @@
diff -up ./phpunit.rpm ./phpunit
---- ./phpunit.rpm 2023-04-14 10:47:29.000000000 +0200
-+++ ./phpunit 2023-04-14 10:49:23.217236377 +0200
-@@ -71,29 +71,25 @@ if (isset($GLOBALS['_composer_autoload_p
+--- ./phpunit.rpm 2024-01-15 07:31:36.850034357 +0100
++++ ./phpunit 2024-01-15 07:33:02.306130486 +0100
+@@ -46,27 +46,13 @@ if (isset($GLOBALS['_composer_autoload_p
define('PHPUNIT_COMPOSER_INSTALL', $GLOBALS['_composer_autoload_path']);
unset($GLOBALS['_composer_autoload_path']);
@@ -13,10 +13,10 @@ diff -up ./phpunit.rpm ./phpunit
- break;
- }
- }
--
+
- unset($file);
-}
-
+-
-if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
- fwrite(
- STDERR,
@@ -34,9 +34,11 @@ diff -up ./phpunit.rpm ./phpunit
}
require PHPUNIT_COMPOSER_INSTALL;
+@@ -101,4 +87,13 @@ if ([] !== $unavailableExtensions) {
+
+ unset($requiredExtensions, $unavailableExtensions);
-exit((new PHPUnit\TextUI\Application)->run($_SERVER['argv']));
-+
+if (class_exists('PHPUnit\\TextUI\\Application')) {
+ // PHPUnit v10 or newer
+ exit((new PHPUnit\TextUI\Application)->run($_SERVER['argv']));
@@ -48,8 +50,8 @@ diff -up ./phpunit.rpm ./phpunit
+ PHPUnit\TextUI\Command::main();
+}
diff -up ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm ./src/TextUI/Configuration/Xml/SchemaFinder.php
---- ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm 2023-04-14 10:51:13.796036447 +0200
-+++ ./src/TextUI/Configuration/Xml/SchemaFinder.php 2023-04-14 10:53:03.227838557 +0200
+--- ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm 2024-01-15 07:25:40.000000000 +0100
++++ ./src/TextUI/Configuration/Xml/SchemaFinder.php 2024-01-15 07:31:36.850034357 +0100
@@ -48,6 +48,6 @@ final class SchemaFinder
return __PHPUNIT_PHAR_ROOT__ . '/';
}
@@ -59,8 +61,8 @@ diff -up ./src/TextUI/Configuration/Xml/SchemaFinder.php.rpm ./src/TextUI/Config
}
}
diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php
---- ./tests/bootstrap.php.rpm 2023-04-14 10:47:29.000000000 +0200
-+++ ./tests/bootstrap.php 2023-04-14 10:49:23.217236377 +0200
+--- ./tests/bootstrap.php.rpm 2024-01-15 07:25:39.000000000 +0100
++++ ./tests/bootstrap.php 2024-01-15 07:31:36.851034393 +0100
@@ -11,8 +11,8 @@ if (!defined('TEST_FILES_PATH')) {
define('TEST_FILES_PATH', __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR);
}