diff options
author | Remi Collet <remi@remirepo.net> | 2020-10-02 11:09:35 +0200 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2020-10-02 11:09:35 +0200 |
commit | b2c1e22019477e88ad09e9bf01ee729882505335 (patch) | |
tree | c8b015909ba42d1fa780d2d8aeffe44faa8041c3 /php-ramsey-uuid-tests.patch |
New package
Diffstat (limited to 'php-ramsey-uuid-tests.patch')
-rw-r--r-- | php-ramsey-uuid-tests.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/php-ramsey-uuid-tests.patch b/php-ramsey-uuid-tests.patch new file mode 100644 index 0000000..d7964fb --- /dev/null +++ b/php-ramsey-uuid-tests.patch @@ -0,0 +1,41 @@ +diff -up ./tests/bootstrap.php.rpm ./tests/bootstrap.php +--- ./tests/bootstrap.php.rpm 2020-10-02 10:51:10.570005924 +0200 ++++ ./tests/bootstrap.php 2020-10-02 10:51:32.465928798 +0200 +@@ -11,8 +11,6 @@ error_reporting(E_ALL & ~E_DEPRECATED); + // Ensure floating-point precision is set to 14 (the default) for tests. + ini_set('precision', '14'); + +-use AspectMock\Kernel; +- + require_once __DIR__ . '/../vendor/autoload.php'; // composer autoload + require_once __DIR__ . '/phpstan-bootstrap.php'; + +@@ -24,9 +22,3 @@ if (!is_dir($cacheDir)) { + } + } + +-$kernel = Kernel::getInstance(); +-$kernel->init([ +- 'debug' => true, +- 'cacheDir' => $cacheDir, +- 'includePaths' => [__DIR__ . '/../src'] +-]); +diff -up ./tests/TestCase.php.rpm ./tests/TestCase.php +--- ./tests/TestCase.php.rpm 2020-10-02 10:51:20.047972540 +0200 ++++ ./tests/TestCase.php 2020-10-02 10:51:26.799948757 +0200 +@@ -4,7 +4,6 @@ declare(strict_types=1); + + namespace Ramsey\Uuid\Test; + +-use AspectMock\Test as AspectMock; + use Mockery; + use PHPUnit\Framework\TestCase as PhpUnitTestCase; + +@@ -17,7 +16,6 @@ class TestCase extends PhpUnitTestCase + protected function tearDown(): void + { + parent::tearDown(); +- AspectMock::clean(); + Mockery::close(); + } + |