Ejemplo n.º 1
0
 /**
  * Test that addError() will flag an field, and getErrors() will return all errors.
  */
 public function testAddGetErrors()
 {
     $this->assertEquals(array(), $this->object->getErrors());
     $this->object->addError('username', 'Invalid username');
     $this->assertEquals(array('username' => 'Invalid username'), $this->object->getErrors());
 }