From f59489d140651770f58a14b19243fdabf97a0236 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 5 Apr 2024 08:17:30 +0200 Subject: update to 8.5.38 (no change) --- phpunit8-rpm.patch | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) (limited to 'phpunit8-rpm.patch') diff --git a/phpunit8-rpm.patch b/phpunit8-rpm.patch index 700bc8a..07bbbb6 100644 --- a/phpunit8-rpm.patch +++ b/phpunit8-rpm.patch @@ -1,6 +1,6 @@ diff -up ./phpunit.rpm ./phpunit --- ./phpunit.rpm 2024-03-06 09:33:13.000000000 +0100 -+++ ./phpunit 2024-03-06 10:01:01.286282118 +0100 ++++ ./phpunit 2024-04-05 08:00:14.044636630 +0200 @@ -62,27 +62,11 @@ if (isset($GLOBALS['_composer_autoload_p define('PHPUNIT_COMPOSER_INSTALL', $GLOBALS['_composer_autoload_path']); @@ -49,9 +49,9 @@ diff -up ./phpunit.rpm ./phpunit + PHPUnit\TextUI\Command::main(); +} diff -up ./src/TextUI/Command.php.rpm ./src/TextUI/Command.php ---- ./src/TextUI/Command.php.rpm 2024-03-06 10:01:47.658055200 +0100 -+++ ./src/TextUI/Command.php 2024-03-06 10:07:26.195999614 +0100 -@@ -1144,7 +1144,7 @@ class Command +--- ./src/TextUI/Command.php.rpm 2024-03-06 09:33:13.000000000 +0100 ++++ ./src/TextUI/Command.php 2024-04-05 08:01:23.626251144 +0200 +@@ -1144,13 +1144,13 @@ class Command $this->printVersionString(); $latestVersion = file_get_contents('https://phar.phpunit.de/latest-version-of/phpunit'); @@ -60,11 +60,18 @@ diff -up ./src/TextUI/Command.php.rpm ./src/TextUI/Command.php $notLatest = version_compare($latestVersion, Version::id(), '>'); $notLatestCompatible = version_compare($latestCompatibleVersion, Version::id(), '>'); + + if ($notLatest || $notLatestCompatible) { +- print 'You are not using the latest version of PHPUnit.' . PHP_EOL; ++ print 'You are not using the latest version of PHPUnit.' . PHP_EOL . PHP_EOL; + } else { + print 'You are using the latest version of PHPUnit.' . PHP_EOL; + } @@ -1161,6 +1161,7 @@ class Command Version::id(), $latestCompatibleVersion ); -+ printf('Try a system update for new phpunit%s package.' . PHP_EOL, $major); ++ printf('Try a system update for new phpunit%s package.' . PHP_EOL . PHP_EOL, $major); } if ($notLatest) { @@ -72,13 +79,13 @@ diff -up ./src/TextUI/Command.php.rpm ./src/TextUI/Command.php 'The latest version is PHPUnit %s.' . PHP_EOL, $latestVersion ); -+ printf('Try to install and use the phpunit%s command.' . PHP_EOL, explode('.', $latestVersion)[0]); ++ printf('Try to install and use the phpunit%s command.' . PHP_EOL . PHP_EOL, explode('.', $latestVersion)[0]); } exit(TestRunner::SUCCESS_EXIT); diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php --- ./src/Util/Configuration.php.rpm 2024-03-06 09:33:13.000000000 +0100 -+++ ./src/Util/Configuration.php 2024-03-06 10:01:01.286282118 +0100 ++++ ./src/Util/Configuration.php 2024-04-05 08:00:14.044636630 +0200 @@ -932,7 +932,7 @@ final class Configuration private function validateConfigurationAgainstSchema(): void { @@ -90,7 +97,7 @@ diff -up ./src/Util/Configuration.php.rpm ./src/Util/Configuration.php $xsdFilename = __PHPUNIT_PHAR_ROOT__ . '/phpunit.xsd'; diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php --- ./tests/bootstrap.php.rpm 2024-03-06 09:33:13.000000000 +0100 -+++ ./tests/bootstrap.php 2024-03-06 10:01:01.286282118 +0100 ++++ ./tests/bootstrap.php 2024-04-05 08:00:14.044636630 +0200 @@ -9,8 +9,8 @@ */ const TEST_FILES_PATH = __DIR__ . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR; -- cgit