/** * @test */ function GettersSettersTest() { $name = "John Doe"; $role = "Tester"; $email = "*****@*****.**"; $company = "none"; $this->person->setName($name); $this->person->setRole($role); $this->person->setEmail($email); $this->person->setCompany($company); $this->assertEquals($this->person->getName(), $name, 'Persons name was set wrong.'); $this->assertEquals($this->person->getRole(), $role, 'Persons role was set wrong.'); $this->assertEquals($this->person->getEmail(), $email, 'Persons email was set wrong.'); $this->assertEquals($this->person->getCompany(), $company, 'Persons company was set wrong.'); }
/** * @test */ public function GettersSettersTest() { $name = 'John Doe'; $role = 'Tester'; $email = '*****@*****.**'; $company = 'none'; $this->person->setName($name); $this->person->setRole($role); $this->person->setEmail($email); $this->person->setCompany($company); self::assertEquals($this->person->getName(), $name, 'Persons name was set wrong.'); self::assertEquals($this->person->getRole(), $role, 'Persons role was set wrong.'); self::assertEquals($this->person->getEmail(), $email, 'Persons email was set wrong.'); self::assertEquals($this->person->getCompany(), $company, 'Persons company was set wrong.'); }