diff options
Diffstat (limited to 'composer-rpm.patch')
-rw-r--r-- | composer-rpm.patch | 38 |
1 files changed, 38 insertions, 0 deletions
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 + { |