layerRepositoryFactoryServiceAttribut = new class() implements LayerRepositoryFactoryServiceAttributInterface { use LayerRepositoryFactoryServiceAttribut; }; } public function testConstruct(): void { $this->expectException(\TypeError::class); $this->layerRepositoryFactoryServiceAttribut->getLayerRepositoryFactoryService(); } public function testAccessors(): void { $layerRepositoryFactoryService = $this->createMock(LayerRepositoryFactoryServiceInterface::class); $this->assertNull($this->layerRepositoryFactoryServiceAttribut->setLayerRepositoryFactoryService($layerRepositoryFactoryService)); $this->assertEquals($layerRepositoryFactoryService, $this->layerRepositoryFactoryServiceAttribut->getLayerRepositoryFactoryService()); } }