Esempio n. 1
0
 /**
  * @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.');
 }
Esempio n. 2
0
 /**
  * @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.');
 }