예제 #1
0
 /**
  * @dataProvider personDataProvider
  *
  * @param $firstName
  * @param $lastName
  * @param $age
  */
 public function testPersonStoresAndReturnsTheSameData($firstName, $lastName, $age)
 {
     $person = new Person($firstName, $lastName, $age);
     $this->assertEquals($firstName, $person->getFirstName());
     $this->assertEquals($lastName, $person->getLastName());
     $this->assertEquals($age, $person->getAge());
 }
예제 #2
0
 public function testStoreOther()
 {
     $firstName = 'Jane';
     $lastName = 'Deo';
     $age = 23;
     $person = new Person($firstName, $lastName, $age);
     $this->assertEquals($firstName, $person->getFirstName());
     $this->assertEquals($lastName, $person->getLastName());
     $this->assertEquals($age, $person->getAge());
 }