From b23bade285d03873fed7e662cb8a0c0475aebf1f Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 8 Jan 2014 21:57:24 -0500 Subject: [PATCH] fixed test break. --- tests/unit/framework/validators/FileValidatorTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/framework/validators/FileValidatorTest.php b/tests/unit/framework/validators/FileValidatorTest.php index b0aad09..5926d7a 100644 --- a/tests/unit/framework/validators/FileValidatorTest.php +++ b/tests/unit/framework/validators/FileValidatorTest.php @@ -189,7 +189,7 @@ class FileValidatorTest extends TestCase $val = new FileValidator(); $val->validateAttribute($m, 'attr_err_ini'); $this->assertTrue($m->hasErrors('attr_err_ini')); - $this->assertTrue(stripos(current($m->getErrors('attr_files')), 'too big') !== false); + $this->assertTrue(stripos(current($m->getErrors('attr_err_ini')), 'too big') !== false); // UPLOAD_ERR_PARTIAL $m = $this->createModelForAttributeTest(); $val = new FileValidator();