Exemple #1
0
 public function Test_of_getBaseErrors()
 {
     $Person = new TestPerson();
     $this->assertEqual($Person->getBaseErrors(), array());
     $Person->addErrorToBase('Nothing has changed');
     $expected = array('Nothing has changed');
     $this->assertEqual($Person->getBaseErrors(), $expected);
     $expected = array('Nothing has changed', 'Nothing has changed at all');
     $Person->addErrorToBase('Nothing has changed at all');
     $this->assertEqual($Person->getBaseErrors(), $expected);
 }