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,36 @@
<?php
namespace tests\unit\Attribut;
use PHPUnit\Framework\TestCase;
use App\Attribut\NameSourceAttributInterface;
use App\Attribut\NameSourceAttribut;
use App\Entity\Source\Primitive\Name\NameSourceInterface;
class NameSourceAttributTest extends TestCase
{
/**
* @var NameSourceAttributInterface
*/
protected $name;
public function setUp(): void
{
$this->name = new class() implements NameSourceAttributInterface {
use NameSourceAttribut;
};
}
public function testConstructor(): void
{
$this->expectException(\TypeError::class);
$this->name->getNameSource();
}
public function testAccessors(): void
{
$nameSource = $this->createMock(NameSourceInterface::class);
$this->assertNull($this->name->setNameSource($nameSource));
$this->assertEquals($nameSource, $this->name->getNameSource());
}
}