Exemplo n.º 1
0
 public function Test_of_errorsToString()
 {
     $Person = new TestPerson();
     $Person->addErrorOnBlank('user_name');
     $Person->addErrorOnBlank('first_name');
     $this->assertTrue(strstr($Person->errorsToString(), "User name can't be blank"));
     $this->assertTrue(strstr($Person->errorsToString(), "First name can't be blank"));
 }