identity = new class() implements PersonIdentitySourceAttributInterface { use PersonIdentityAttribut; }; } public function testConstructor(): void { $this->expectException(\TypeError::class); $this->identity->getIdentitySource(); } public function testAccessors(): void { $identity = $this->createMock(PersonIdentitySourceInterface::class); $this->assertNull($this->identity->setIdentitySource($identity)); $this->assertEquals($collection, $this->identity->getIdentitySource()); } }