diff options
| author | Remi Collet <remi@remirepo.net> | 2020-10-25 06:21:01 +0100 | 
|---|---|---|
| committer | Remi Collet <remi@remirepo.net> | 2020-10-25 06:21:01 +0100 | 
| commit | c635e4c3d965bbaee203b5f0a14e7a8c8103d47b (patch) | |
| tree | 4015bb47c547256ddd897bf11e2d7e7102f96631 /composer-rpm.patch | |
| parent | aacd2512479deef2cec6b74503c52e9c6ba2750c (diff) | |
update to 2.0.0-RC2
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 +         { | 
