name = new FullPersonNameSource(); } public function testConstructor(): void { $this->assertInstanceOf(SurnameSourceInterface::class, $this->name->getSurnameSource()); $this->assertInstanceOf(FirstNameSourceInterface::class, $this->name->getFirstNameSource()); } public function testFirstNameAccessor(): void { $name = $this->createMock(FirstNameSourceInterface::class); $this->assertNull($this->name->setFirstNameSource($name)); $this->assertEquals($name, $this->name->getFirstNameSource()); } public function testSurnameAccessor(): void { $name = $this->createMock(SurnameSourceInterface::class); $this->assertNull($this->name->setSurnameSource($name)); $this->assertEquals($name, $this->name->getSurnameSource()); } }