-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Andrea Pollastri
committed
Nov 13, 2023
1 parent
cc3e1b4
commit 9d2fcd8
Showing
2 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
namespace Tests\Axiostudio\FatturaElettronica\Models; | ||
|
||
use Axiostudio\FatturaElettronica\Models\DatiAnagrafici; | ||
use Axiostudio\FatturaElettronica\Models\Id; | ||
use Axiostudio\FatturaElettronica\Models\Anagrafica; | ||
use Axiostudio\FatturaElettronica\Settings; | ||
use PHPUnit\Framework\TestCase; | ||
use Symfony\Component\Validator\Validation; | ||
|
||
class DatiAnagraficiTest extends TestCase | ||
{ | ||
public function testConstructor(): void | ||
{ | ||
$id = '0123456789'; | ||
$anagrafica = ['Company Ltd', 'John', 'Doe']; | ||
|
||
$codiceFiscale = 'ABC123XYZ4567890'; | ||
$regimeFiscale = 'RegimeFiscaleValue'; | ||
|
||
$datiAnagrafici = new DatiAnagrafici($id, $anagrafica, $codiceFiscale, $regimeFiscale); | ||
|
||
$this->assertInstanceOf(DatiAnagrafici::class, $datiAnagrafici); | ||
$this->assertInstanceOf(Id::class, $datiAnagrafici->IdFiscaleIVA); | ||
$this->assertInstanceOf(Anagrafica::class, $datiAnagrafici->Anagrafica); | ||
$this->assertEquals($codiceFiscale, $datiAnagrafici->CodiceFiscale); | ||
$this->assertEquals($regimeFiscale, $datiAnagrafici->RegimeFiscale); | ||
} | ||
} |