relationAttribut = new class() implements RelationAttributInterface { use RelationAttribut; }; } public function testAccessors(): void { $relation = $this->createMock(RelationInterface::class); $this->assertNull($this->relationAttribut->setRelation($relation)); $this->assertEquals($relation, $this->relationAttribut->getRelation()); } }