remove process isolation for PHP 8.3 tests

This commit is contained in:
David Bomba 2024-09-03 08:35:13 +10:00
parent b37dfe63e9
commit 8b8a5e3148
3 changed files with 8 additions and 2 deletions

View File

@ -388,7 +388,11 @@ class Peppol extends AbstractService
*/ */
public function toObject(): mixed public function toObject(): mixed
{ {
return json_decode($this->toJson());
$invoice = new \stdClass;
$invoice->Invoice = json_decode($this->toJson());
return $invoice;
} }
/** /**

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false"
bootstrap="vendor/autoload.php" colors="true" processIsolation="true" stopOnError="true" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnError="true" stopOnFailure="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.3/phpunit.xsd"
cacheDirectory=".phpunit.cache" backupStaticProperties="false"> cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites> <testsuites>
<testsuite name="Unit"> <testsuite name="Unit">

View File

@ -2,6 +2,7 @@
namespace Tests; namespace Tests;
use Mockery;
use App\Utils\Traits\AppSetup; use App\Utils\Traits\AppSetup;
use Illuminate\Foundation\Testing\TestCase as BaseTestCase; use Illuminate\Foundation\Testing\TestCase as BaseTestCase;
@ -15,4 +16,5 @@ abstract class TestCase extends BaseTestCase
parent::setUp(); parent::setUp();
} }
} }