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,33 @@
<?php
namespace App\Attribut;
use PHPUnit\Framework\TestCase;
class NameAttributTest extends TestCase
{
/**
* @var NameAttributInterface
*/
public $name;
public function setUp(): void
{
$this->name = new class() implements NameAttributInterface {
use NameAttribut;
};
}
public function testConstructor(): void
{
$this->expectException(\TypeError::class);
$this->name->getName();
}
public function testAccessors(): void
{
$name = 'hello world!';
$this->assertNull($this->name->setName($name));
$this->assertEquals($name, $this->name->getName());
}
}