From b2c1e22019477e88ad09e9bf01ee729882505335 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 2 Oct 2020 11:09:35 +0200 Subject: New package --- php-ramsey-uuid-tests.patch | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 php-ramsey-uuid-tests.patch (limited to 'php-ramsey-uuid-tests.patch') 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(); + } + -- cgit