コード例 #1
0
 public function testGettersAndSetters()
 {
     $year = 2014;
     $state = 'MO';
     $personsInHousehold = 2;
     $householdIncome = 15000;
     $object = new FederalPovertyLevel();
     $object->setYear($year)->setState($state)->setPersonsInHousehold($personsInHousehold)->setHouseholdIncome($householdIncome);
     $this->assertEquals($year, $object->getYear());
     $this->assertEquals($state, $object->getState());
     $this->assertEquals($personsInHousehold, $object->getPersonsInHousehold());
     $this->assertEquals($householdIncome, $object->getHouseholdIncome());
 }