-
Notifications
You must be signed in to change notification settings - Fork 1
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
c40f750
commit cc3e1b4
Showing
3 changed files
with
83 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
namespace Axiostudio\FatturaElettronica\Tests; | ||
|
||
use Axiostudio\FatturaElettronica\Models\Anagrafica; | ||
use PHPUnit\Framework\TestCase; | ||
|
||
class AnagraficaTest extends TestCase | ||
{ | ||
public function testConstructor(): void | ||
{ | ||
$denominazione = 'Company'; | ||
$nome = 'John'; | ||
$cognome = 'Doe'; | ||
|
||
$anagrafica = new Anagrafica($denominazione, $nome, $cognome); | ||
|
||
$this->assertInstanceOf(Anagrafica::class, $anagrafica); | ||
$this->assertEquals($denominazione, $anagrafica->Denominazione); | ||
$this->assertEquals($nome, $anagrafica->Nome); | ||
$this->assertEquals($cognome, $anagrafica->Cognome); | ||
} | ||
} |
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 Axiostudio\FatturaElettronica\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Axiostudio\FatturaElettronica\Models\Sede; | ||
use Axiostudio\FatturaElettronica\Models\DatiAnagrafici; | ||
use Axiostudio\FatturaElettronica\Models\CedentePrestatore; | ||
|
||
class CedentePrestatoreTest extends TestCase | ||
{ | ||
public function testConstructor(): void | ||
{ | ||
|
||
$DatiAnagrafici = ['Company Ltd', '0123456789']; | ||
$Sede = [ | ||
'Via Roma, 1', | ||
'00100', | ||
'Roma', | ||
'RM', | ||
'IT' | ||
]; | ||
|
||
$cedentePrestatore = new CedentePrestatore($DatiAnagrafici, $Sede); | ||
|
||
$this->assertInstanceOf(CedentePrestatore::class, $cedentePrestatore); | ||
$this->assertInstanceOf(DatiAnagrafici::class, $cedentePrestatore->DatiAnagrafici); | ||
$this->assertInstanceOf(Sede::class, $cedentePrestatore->Sede); | ||
} | ||
} |
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 Axiostudio\FatturaElettronica\Tests; | ||
|
||
use PHPUnit\Framework\TestCase; | ||
use Axiostudio\FatturaElettronica\Models\Sede; | ||
use Axiostudio\FatturaElettronica\Models\DatiAnagrafici; | ||
use Axiostudio\FatturaElettronica\Models\CessionarioCommittente; | ||
|
||
class CessionarioCommittenteTest extends TestCase | ||
{ | ||
public function testConstructor(): void | ||
{ | ||
|
||
$DatiAnagrafici = ['Company Ltd', '0123456789']; | ||
$Sede = [ | ||
'Via Roma, 1', | ||
'00100', | ||
'Roma', | ||
'RM', | ||
'IT' | ||
]; | ||
|
||
$cedentePrestatore = new CessionarioCommittente($DatiAnagrafici, $Sede); | ||
|
||
$this->assertInstanceOf(CessionarioCommittente::class, $cedentePrestatore); | ||
$this->assertInstanceOf(DatiAnagrafici::class, $cedentePrestatore->DatiAnagrafici); | ||
$this->assertInstanceOf(Sede::class, $cedentePrestatore->Sede); | ||
} | ||
} |