Skip to content

Commit bb50387

Browse files
committed
Fix -> tests namespaces
1 parent e6f58be commit bb50387

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

tests/GenerateRealInvoiceTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace MarioDevv\Rex\Tests\Facturae;
5+
namespace PhpFacturae\Tests;
66

77
use PhpFacturae\Tests\Mother\InvoiceMother;
88
use PHPUnit\Framework\TestCase;
@@ -23,7 +23,11 @@ public static function setUpBeforeClass(): void
2323
public function test_canary_igic_invoice(): void
2424
{
2525
$path = self::$distDir . '/factura-canaria-igic.xsig';
26-
InvoiceMother::canaryIgic()->export($path);
26+
try {
27+
InvoiceMother::canaryIgic()->export($path);
28+
} catch (\Throwable $e) {
29+
$this->fail($e::class . ': ' . $e->getMessage());
30+
}
2731
$this->assertValidFacturae($path);
2832
}
2933

tests/InvoiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace MarioDevv\Rex\Tests\Facturae;
5+
namespace PhpFacturae\Tests;
66

77
use PhpFacturae\Exceptions\InvoiceValidationException;
88
use PhpFacturae\Invoice;

tests/LineTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
declare(strict_types=1);
3-
namespace MarioDevv\Rex\Tests\Facturae;
3+
namespace PhpFacturae\Tests;
44
use PhpFacturae\Entities\Line;
55
use PHPUnit\Framework\TestCase;
66

tests/PartyTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
declare(strict_types=1);
33

4-
namespace MarioDevv\Rex\Tests\Facturae;
4+
namespace PhpFacturae\Tests;
55
use PhpFacturae\Party;
66
use PhpFacturae\Exceptions\InvalidPostalCodeException;
77
use PHPUnit\Framework\TestCase;

tests/XmlExportBenchmarkTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace MarioDevv\Rex\Tests\Facturae;
5+
namespace PhpFacturae\Tests;
66

77
use PhpFacturae\Tests\Mother\InvoiceMother;
88
use PHPUnit\Framework\TestCase;

0 commit comments

Comments
 (0)