slugAttribut = new class() implements SlugAttributInterface { use SlugAttribut; }; } public function testConstructor(): void { $this->expectException(\TypeError::class); $this->slugAttribut->getSlug(); } public function testAccessors(): void { $slug = 'goodslug'; $this->assertNull($this->slugAttribut->setSlug($slug)); $this->assertEquals($slug, $this->slugAttribut->getSlug()); } }