Finish test suite

This commit is contained in:
David Bomba 2025-04-25 17:03:16 +10:00
parent ff50e3c9d9
commit 46de411160
1 changed files with 31 additions and 31 deletions

View File

@ -77,10 +77,10 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
// Validate against XSD // Validate against XSD
$doc = new \DOMDocument(); $doc = new \DOMDocument();
@ -159,10 +159,10 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
// Validate against XSD // Validate against XSD
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -238,10 +238,10 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
// Validate against XSD // Validate against XSD
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -301,10 +301,10 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
// Validate against XSD // Validate against XSD
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -397,9 +397,9 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -481,9 +481,9 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
// Validate against XSD // Validate against XSD
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -554,9 +554,9 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -626,9 +626,9 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());
@ -688,9 +688,9 @@ class InvoiceTest extends BaseModelTest
$xml = $invoice->toXmlString(); $xml = $invoice->toXmlString();
// Debug output // Debug output
echo "\nGenerated XML:\n"; // echo "\nGenerated XML:\n";
echo $xml; // echo $xml;
echo "\n\n"; // echo "\n\n";
$this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath()); $this->assertValidatesAgainstXsd($xml, $this->getTestXsdPath());