mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Refactored\moved Attribut folder
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user