diff --git a/application/tests/Unit/Entity/Attribut/TypeAttributTest.php b/application/tests/Unit/Entity/Attribut/TypeAttributTest.php new file mode 100644 index 0000000..e8d9751 --- /dev/null +++ b/application/tests/Unit/Entity/Attribut/TypeAttributTest.php @@ -0,0 +1,38 @@ +typeAttribut = new class() implements TypeAttributInterface { + use TypeAttribut; + }; + } + + public function testConstructor(): void + { + $this->expectException(\TypeError::class); + $this->typeAttribut->getType(); + } + + public function testAccessors(): void + { + $type = 'Hello World!'; + $this->assertNull($this->typeAttribut->setType($type)); + $this->assertEquals($type, $this->typeAttribut->getType()); + } +}