From c635e4c3d965bbaee203b5f0a14e7a8c8103d47b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 25 Oct 2020 06:21:01 +0100 Subject: update to 2.0.0-RC2 --- composer-rpm.patch | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'composer-rpm.patch') diff --git a/composer-rpm.patch b/composer-rpm.patch index 5572b1a..689ceac 100644 --- a/composer-rpm.patch +++ b/composer-rpm.patch @@ -68,3 +68,41 @@ diff -up ./tests/Composer/Test/Json/ComposerSchemaTest.php.rpm ./tests/Composer/ if (!$validator->isValid()) { $errors = $validator->getErrors(); +diff -up ./tests/Composer/Test/PolyfillTestCase.php.rpm ./tests/Composer/Test/PolyfillTestCase.php +--- ./tests/Composer/Test/PolyfillTestCase.php.rpm 2020-10-15 10:22:22.286612967 +0200 ++++ ./tests/Composer/Test/PolyfillTestCase.php 2020-10-15 10:22:26.860595123 +0200 +@@ -18,8 +18,33 @@ namespace Composer\Test { + use PHPUnit\Framework\Constraint\StringContains; + use PHPUnit\Framework\Constraint\TraversableContains; + +- if (method_exists('PHPUnit\Framework\TestCase', 'assertStringContainsString')) { ++ if (method_exists('PHPUnit\Framework\TestCase', 'assertFileDoesNotExist')) { + abstract class PolyfillTestCase extends TestCase {} ++ } else if (method_exists('PHPUnit\Framework\TestCase', 'assertStringContainsString')) { ++ abstract class PolyfillTestCase extends TestCase { ++ /** ++ * @param string $filename ++ * @param string $message ++ * ++ * @return void ++ */ ++ public static function assertFileDoesNotExist($filename, $message = '') ++ { ++ static::assertFileNotExists($filename, $message); ++ } ++ ++ /** ++ * @param string $pattern ++ * @param string $string ++ * @param string $message ++ * ++ * @return void ++ */ ++ public static function assertMatchesRegularExpression($pattern, $string, $message = '') ++ { ++ static::assertRegExp($pattern, $string, $message); ++ } ++ } + } else { + abstract class PolyfillTestCase extends TestCase + { -- cgit