add ExtractTune use case

This commit is contained in:
2018-04-30 17:24:02 -04:00
parent 3817394951
commit e8c8709976
42 changed files with 1388 additions and 5047 deletions

View File

@@ -0,0 +1,29 @@
<?php
namespace Tests\Unit\AbcParser\Application;
use Enzyme\Axiom\Atoms\StringAtom;
use XaiCorp\AbcParser\Application\PersonFactory;
use XaiCorp\AbcParser\Domain\Atoms\EmailAtom;
use XaiCorp\AbcParser\Domain\Core\Person;
class PersonFactoryTest extends \PHPUnit_Framework_TestCase
{
public function testCreate()
{
$factory = new PersonFactory();
$this->assertInstanceOf(PersonFactory::class, $factory);
}
public function testCreatePerson()
{
$factory = new PersonFactory();
$name = new StringAtom('Roger');
$email = new EmailAtom('');
$result = $factory->create($name, $email);
$this->assertInstanceOf(Person::class, $result);
}
}