public function testSetGetErrors()
{
$this->object->setError('field1', 'msg1', 'one');
$this->object->setError('field2', 'msg2', 'two');
$this->object->setError('field3', 'msg3', 'three');
$this->assertEquals('msg1', $this->object->getError('field1'));
$this->assertEquals('msg2', $this->object->getError('field2'));
$this->assertEquals('msg3', $this->object->getError('field3'));
$this->assertEquals(array('field1' => 'msg1', 'field2' => 'msg2', 'field3' => 'msg3'), $this->object->getErrors());
$this->assertEquals(array('field1' => 'one', 'field2' => 'two', 'field3' => 'three'), $this->object->getFailedRules());
}