Refactored\moved Attribut folder

This commit is contained in:
Kevin Frantz
2019-01-20 10:41:58 +01:00
parent 5301be7614
commit e695aa26ea
122 changed files with 223 additions and 223 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace Tests\Unit\Attribut;
use PHPUnit\Framework\TestCase;
use App\Entity\Source\Complex\FullPersonNameSourceInterface;
use App\Attribut\FullPersonNameSourceAttributInterface;
use App\Attribut\FullPersonNameSourceAttribut;
/**
* @author kevinfrantz
*/
class FullPersonNameSourceAttributTest extends TestCase
{
/**
* @var FullPersonNameSourceAttributInterface
*/
protected $fullname;
public function setUp(): void
{
$this->fullname = new class() implements FullPersonNameSourceAttributInterface {
use FullPersonNameSourceAttribut;
};
}
public function testConstructor(): void
{
$this->expectException(\TypeError::class);
$this->fullname->getFullPersonNameSource();
}
public function testAccessors(): void
{
$fullname = $this->createMock(FullPersonNameSourceInterface::class);
$this->assertNull($this->fullname->setFullPersonNameSource($fullname));
$this->assertEquals($fullname, $this->fullname->getFullPersonNameSource());
}
}