summaryrefslogtreecommitdiffstats
path: root/php-ramsey-uuid-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'php-ramsey-uuid-tests.patch')
-rw-r--r--php-ramsey-uuid-tests.patch41
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();
+ }
+