childs = new class() implements ChildsAttributInterface { use ChildsAttribut; }; } public function testConstructor(): void { $this->expectException(\TypeError::class); $this->childs->getChilds(); } public function testAccessors(): void { $childs = new ArrayCollection(); $this->assertNull($this->childs->setChilds($childs)); $this->assertEquals($childs, $this->childs->getChilds()); } }