From 8b8a5e3148c8ba0c664ec833777e3442db2cf4b7 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 3 Sep 2024 08:35:13 +1000 Subject: [PATCH] remove process isolation for PHP 8.3 tests --- app/Services/EDocument/Standards/Peppol.php | 6 +++++- phpunit.xml | 2 +- tests/TestCase.php | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/Services/EDocument/Standards/Peppol.php b/app/Services/EDocument/Standards/Peppol.php index bce608b94c48..4dcbb5a46cb2 100644 --- a/app/Services/EDocument/Standards/Peppol.php +++ b/app/Services/EDocument/Standards/Peppol.php @@ -388,7 +388,11 @@ class Peppol extends AbstractService */ public function toObject(): mixed { - return json_decode($this->toJson()); + + $invoice = new \stdClass; + $invoice->Invoice = json_decode($this->toJson()); + return $invoice; + } /** diff --git a/phpunit.xml b/phpunit.xml index 1c27f29b2b43..d9b2e4a1cf3e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ diff --git a/tests/TestCase.php b/tests/TestCase.php index 3f3e937bab2e..a9c24851b479 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -2,6 +2,7 @@ namespace Tests; +use Mockery; use App\Utils\Traits\AppSetup; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; @@ -15,4 +16,5 @@ abstract class TestCase extends BaseTestCase parent::setUp(); } + }