/** * @testdox Allows setting the users city * @covers Auth\Entity\Info::getLastName * @covers Auth\Entity\Info::setLastName * @dataProvider provideGetDisplayNameTestData */ public function testGetDisplayName($firstname, $lastname, $email, $result) { $this->target->setFirstName($firstname); $this->target->setLastName($lastname); $this->target->setEmail($email); $this->assertEquals($result, $this->target->getDisplayName()); }
/** * Test Contact entity should inherit from InfoInterface */ public function testShouldCopyFromInfoInterface() { $info = new Info(); $info->setFirstName('First Name')->setLastName('Last Name')->setBirthDay('01-01-1980'); $ob = $this->target; $ob->inherit($info); $this->assertEquals($info->getFirstName(), $ob->getFirstName()); $this->assertEquals($info->getLastName(), $ob->getLastName()); $this->assertEquals($info->getBirthDay(), $ob->getBirthDay()); }