/** * @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()); }
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()); }