Commit f7bb54be by Suralc

Test fix for Php 5.3

parent 467d88fa
......@@ -105,6 +105,7 @@ class StringValidatorTest extends TestCase
$model->attr_string = 'abc';
$val->validateAttribute($model, 'attr_string');
$this->assertTrue($model->hasErrors('attr_string'));
$this->assertEquals('attr_string to short. Min is 5', $model->getErrors('attr_string')[0]);
$errorMsg = $model->getErrors('attr_string');
$this->assertEquals('attr_string to short. Min is 5', $errorMsg[0]);
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment