From a5f5576f943df457163ce275db71e95d25fe28e6 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 30 Oct 2024 16:01:29 +1100 Subject: [PATCH] Checks for saxon --- tests/Feature/EInvoice/PeppolTest.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Feature/EInvoice/PeppolTest.php b/tests/Feature/EInvoice/PeppolTest.php index 68815f53bf..79563134ab 100644 --- a/tests/Feature/EInvoice/PeppolTest.php +++ b/tests/Feature/EInvoice/PeppolTest.php @@ -320,6 +320,13 @@ class PeppolTest extends TestCase $xml = $peppol->toXml(); + try{ + $processor = new \Saxon\SaxonProcessor(); + } + catch(\Exception $e){ + $this->markTestSkipped('saxon not installed'); + } + $validator = new XsltDocumentValidator($xml); $validator->validate();