Name = new Name($this->unstructured); } /** * Cleans up the environment after running a test. */ protected function tearDown() { $this->Name = null; parent::tearDown(); } /** * Tests Name->getAdditionalName() */ public function testGetAdditionalName() { $this->Name->additionalName = $this->additionalName; $this->assertEquals($this->Name->getAdditionalName(), $this->additionalName); } /** * Tests Name->getFamilyName() */ public function testGetFamilyName() { $this->Name->familyName = $this->familyName; $this->assertEquals($this->Name->getFamilyName(), $this->familyName); } /** * Tests Name->getGivenName() */ public function testGetGivenName() { $this->Name->givenName = $this->givenName; $this->assertEquals($this->Name->getGivenName(), $this->givenName); } /** * Tests Name->getHonorificPrefix() */ public function testGetHonorificPrefix() { $this->Name->honorificPrefix = $this->honorificPrefix; $this->assertEquals($this->Name->getHonorificPrefix(), $this->honorificPrefix); } /** * Tests Name->getHonorificSuffix() */ public function testGetHonorificSuffix() { $this->Name->honorificSuffix = $this->honorificSuffix; $this->assertEquals($this->Name->getHonorificSuffix(), $this->honorificSuffix); } /** * Tests Name->getUnstructured() */ public function testGetUnstructured() { $this->Name->unstructured = $this->unstructured; $this->assertEquals($this->Name->getFormatted(), $this->unstructured); } /** * Tests Name->setAdditionalName() */ public function testSetAdditionalName() { $this->Name->setAdditionalName($this->additionalName); $this->assertEquals($this->Name->getAdditionalName(), $this->additionalName); } /** * Tests Name->setFamilyName() */ public function testSetFamilyName() { $this->Name->setFamilyName($this->familyName); $this->assertEquals($this->Name->getFamilyName(), $this->familyName); } /** * Tests Name->setGivenName() */ public function testSetGivenName() { $this->Name->setGivenName($this->givenName); $this->assertEquals($this->Name->getGivenName(), $this->givenName); } /** * Tests Name->setHonorificPrefix() */ public function testSetHonorificPrefix() { $this->Name->setHonorificPrefix($this->honorificPrefix); $this->assertEquals($this->Name->getHonorificPrefix(), $this->honorificPrefix); } /** * Tests Name->setHonorificSuffix() */ public function testSetHonorificSuffix() { $this->Name->setHonorificSuffix($this->honorificSuffix); $this->assertEquals($this->Name->getHonorificSuffix(), $this->honorificSuffix); } /** * Tests Name->setUnstructured() */ public function testSetUnstructured() { $this->Name->setFormatted($this->unstructured); $this->assertEquals($this->Name->getFormatted(), $this->unstructured); } }