finished default parser
This commit is contained in:
26
tests/unit/AbcParser/Domain/Core/PersonTest.php
Normal file
26
tests/unit/AbcParser/Domain/Core/PersonTest.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: richard
|
||||
* Date: 11/19/17
|
||||
* Time: 4:39 PM
|
||||
*/
|
||||
|
||||
namespace Tests\Unit\AbcParser\Domain\Core;
|
||||
|
||||
use Enzyme\Axiom\Atoms\StringAtom;
|
||||
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
|
||||
use XaiCorp\AbcParser\Domain\Core\Person;
|
||||
|
||||
class PersonTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testCreate()
|
||||
{
|
||||
$name = new StringAtom('Roger');
|
||||
$email = new EmailAtom('');
|
||||
$person = new Person($name, $email);
|
||||
|
||||
$this->assertInstanceOf(Person::class, $person);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user