Taras Gudz
8c68de1bb6
Fixed #3283
2014-04-04 14:16:18 +04:00
ptarjan
9acbdc7f3e
add missing includes
2013-11-20 17:39:50 -08:00
Paul Klimov
31e7ab1c04
CFileValidator has been fixed.
2013-08-29 11:41:25 +03:00
Paul Klimov
db6e6bc58c
Unit test 'CFileValidatorTest' has been updated to expose issue #2821
2013-08-29 11:28:46 +03:00
resurtm
5f99be770d
Additions to #2602 :
...
1. Proper Net_IDNA2 usage. Net_IDNA2::decode() and Net_IDNA2::encode()
accepts only domains, not full URLs. Before this fix framework used
to pass full URLs which is wrong usage.
2. If CEmailValidator or CUrlValidator is being used under PHP 5.3.0+,
native `idn` PHP extension will be used (`idn_to_utf8` and `idn_to_ascii`
functions in particular). Otherwise Net_IDNA2 will be used (for PHP
< 5.3.0).
2013-07-04 19:32:09 +06:00
Alexander Makarov
03fb457d9c
fixed test
2013-06-12 14:41:56 +04:00
Alexander Makarov
e0a45a0ffa
more tests
2013-06-12 14:33:16 +04:00
Alexander Makarov
6546a641f4
added tests
2013-06-12 13:32:37 +04:00
Alexander Makarov
245d7fa1f7
fixed class name
2013-06-12 13:31:59 +04:00
Carsten Brandt
a2aa6ee648
Merge pull request #2354 branch '2343-required-validator-trim' of https://github.com/AnatolyRugalev/yii into AnatolyRugalev-2343-required-validator-trim
...
* '2343-required-validator-trim' of https://github.com/AnatolyRugalev/yii :
changed changelog line
Added @since for $trim property
Modified changelog line
Added changelog line
Added CRequiredValidator test case for $trim => true
Added CRequiredValidator test
Added $trim property to CRequiredValidator
Conflicts:
tests/framework/validators/ValidatorTestModel.php
2013-04-17 19:17:08 +02:00
AnatolyRugalev
b12d505171
Added CRequiredValidator test case for $trim => true
2013-04-17 20:36:49 +06:00
Anatoly Rugalev
c9d2e4f5c8
Added CRequiredValidator test
2013-04-17 00:01:25 +06:00
resurtm
1c96337745
Fixes #1669 : CNumberValidator used to add wrong error messages in case non-numeric values being validated.
2013-04-03 16:15:06 +06:00
resurtm
f635a4c8a4
Error messages related to array value case changed.
2013-03-10 18:20:54 +06:00
resurtm
c6a0623bbf
Indentation consistency fixes.
2013-03-09 22:16:34 +06:00
resurtm
ed635aa9e2
Some validators used to cause warnings or errors in case non-scalar array typed values being checked.
2013-03-09 22:12:18 +06:00
Alexander Makarov
b2f152cb69
backwards compatibility
2012-12-01 14:47:19 +04:00
antoncpu
92c0aeaea5
fixed typo
2012-11-29 22:57:59 +02:00
antoncpu
bb61c72a51
refactored to avoid inappropriate arguments passed to trim() or CDateTimeParser::parse()
2012-11-29 22:46:55 +02:00
Alexander Makarov
f620bf7703
more tests for CTypeValidator
2012-11-29 00:04:53 +04:00
Alexander Makarov
fdce3eda30
Addition to #217 : handling of objects and boolean values
2012-11-28 22:24:24 +04:00
Alexander Makarov
4fc04645d9
Fixes #217 : Added CTypeValidator::validateValue() and CTypeValidator::$strict, better check for arrays
2012-11-28 02:50:59 +04:00
Carsten Brandt
6fc226b826
CCompareValidatorTest
...
converted tabs to spaces and fixed test to expect consitent messages.
Same on server and client.
2012-11-21 18:19:36 +01:00
resurtm
e07ab941d2
Additional stuff related to the IDN email and URL validating.
2012-09-08 12:30:00 +06:00
resurtm
75936ea01c
Indentation issues.
2012-08-26 14:37:29 +06:00
resurtm
1856c31b66
Additional tests for CUrlValidator.
2012-08-26 14:34:59 +06:00
resurtm
b598442605
Fixes #1286 and #1184 . Draft version.
2012-08-25 16:16:51 +06:00
Qiang Xue
91495a3d1a
renamed CValidator::$on to be CValidator::$except.
2012-07-28 23:52:22 -04:00
resurtm
9a159cb4d7
Class name: CFileValidatorTestCase → CFileValidatorTest.
2012-07-08 16:30:14 +06:00
resurtm
205cf9d3c3
Fix #938 , solution #2 .
2012-07-08 16:20:43 +06:00
mdomba (mdlap)
1a859a57b8
Fixes validator fail in pull request #877 for issue #114
2012-07-01 15:58:44 +02:00
Paul Klimov
552b198146
Code indenting at "CExistValidator", "CUniqueValidator", "CExistValidatorTest", "CUniqueValidatorTest" has been fixed: whitespaces have been replaced by tabs.
2012-06-26 15:05:20 +03:00
Paul Klimov
84b874a4a1
Unit test "CExistValidatorTest" has been updated to check "caseSensitive" feature.
...
Spell error in "CUniqueValidatorTest" has been fixed.
2012-06-25 12:33:26 +03:00
Paul Klimov
e25cea911c
Unit tests "CExistValidatorTest" and "CUniqueValidatorTest" have been created.
2012-06-25 12:07:52 +03:00
resurtm
badee5cc94
Added property $off to CValidator, a list of scenarios that the validator should not be applied to.
2012-06-22 21:53:50 +06:00
alexander.makarow
91f6afb919
unit tests for validators
2011-06-17 18:01:02 +00:00
alexander.makarow
3e227018b6
additional test for email validator
2011-05-12 23:37:43 +00:00
alexander.makarow
1f757cbf53
improved unit tests
2011-02-18 15:25:38 +00:00