Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartkCz committed May 4, 2022
1 parent a2e198a commit abe73a9
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/unit/CompanyTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php declare(strict_types = 1);

use Codeception\PHPUnit\TestCase;
use Contributte\Invoice\Data\Company;

final class CompanyTest extends TestCase
{

public function testCompany(): void
{
$company = new Company('name', 'town', 'address', 'zip', 'country', 'vatNumber', 'id');

self::assertSame('name', $company->getName());
self::assertSame('town', $company->getTown());
self::assertSame('address', $company->getAddress());
self::assertSame('zip', $company->getZip());
self::assertSame('country', $company->getCountry());
self::assertSame('vatNumber', $company->getVatNumber());
self::assertSame('id', $company->getId());
}

}

0 comments on commit abe73a9

Please sign in to comment.