Browse Source

Test fix for Php 5.3

tags/2.0.0-beta
Suralc 12 years ago
parent
commit
f7bb54be1c
  1. 3
      tests/unit/framework/validators/StringValidatorTest.php

3
tests/unit/framework/validators/StringValidatorTest.php

@ -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]);
}
}
Loading…
Cancel
Save