Hugo Hamon
73312ab5e9
[Validator] The Type constraint now accepts the "Boolean" type instead of "boolean".
...
Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
2011-10-11 12:27:45 +02:00
Fabien Potencier
a8faa83708
merged 2.0
2011-10-08 22:58:00 +02:00
Joseph Bielawski
d7c9644d29
[Validator] Extend and fix DateValidator & TimeValidator tests
2011-10-07 10:47:59 +02:00
Fabien Potencier
d6c4bfb001
added a Size validator
2011-09-29 15:56:37 +02:00
Fabien Potencier
b9ba117208
[Validator] added a SizeLength validator
2011-09-29 15:45:52 +02:00
H. Westphal
3e2f1a4b13
Removed executable bits from all php files
2011-09-09 15:16:17 +02:00
H. Westphal
a0a97c6a22
Removed executable bits from all php files
2011-09-07 22:51:20 +02:00
Benjamin Dulau
135531a2de
Replaced setExpectedException() methods by annotations
2011-09-04 17:45:31 +02:00
Benjamin Dulau
6ad83e7970
Updated according to PR review
2011-09-04 17:45:25 +02:00
Benjamin Dulau
2de243cf07
* Added Fixtures 2x2px test.gif image file
...
* Updated tests for using fixture image instead of imagecreate function
2011-09-04 17:28:52 +02:00
Benjamin Dulau
a5a2dfaaa6
[ImageValidator] Added dedicated ImageValidator class with min width, max width, min height and max height validations
2011-09-04 17:28:46 +02:00
Fabien Potencier
e7b2d2d659
merged 2.0 branch
2011-09-04 09:28:37 +02:00
Evan Kaufman
639513a67a
Per the [documentation][1], the NotBlank
constraint should be using the empty
language construct, otherwise it will not trigger on, for example, a boolean false from an unchecked checkbox field.
...
[1]: http://symfony.com/doc/2.0/reference/constraints/NotBlank.html
2011-09-02 09:37:48 +02:00
stealth35
5a470103f0
[Validator] FileValidator allow MIME with wildcard
2011-09-01 16:10:16 +02:00
Fabien Potencier
e42a2dede1
[Validator] fixed unit tests when intl is not installed
2011-07-20 14:45:35 +02:00
Deni
0f328d228b
[Validator] Fixed using the strict option in the choice validator.
2011-07-16 21:16:21 +04:00
Fabien Potencier
88d915d175
[Validator] fixed Min and Max validator when the input value is not a number (now return an error message instead of an exception which does not make sense in this context)
2011-07-12 17:40:02 +02:00
marc.weistroff
df57e0fe9a
[Validator] Added strict option to ChoiceConstraint.
2011-07-07 15:11:36 +02:00
Victor Berchet
d58ba34246
[Validator] Consider the ini directive 'upload_max_filesize' while validating an uploaded file (fixes GH-1441)
2011-07-05 20:05:50 +02:00
Fabien Potencier
f322a4a99d
fixed CS
2011-06-23 13:39:36 +02:00
Jordi Boggiano
159fc0edf0
[Validator] Added symbols to IDNs validation
2011-06-20 13:52:36 +02:00
Jordi Boggiano
c827faf694
[Validator] Add support for IDNs and custom TLDs
2011-06-20 12:57:46 +02:00
Fabien Potencier
0805c6f963
[Validator] removed MX test (tests should work with Internet down)
2011-06-16 15:22:16 +02:00
stloyd
edf4b87dcb
Add missing "tearDown" functions, and some missing variable declaration (this saves for me almost 20MB when run all tests)
...
Force AsseticBundle tests to use TestCase
Fix test for DoctrineBundle to use TestCase
2011-06-16 15:06:36 +02:00
stloyd
2b0c3526d8
Increase code coverage for: YamlParser, Validators, PhpEngine + Helpers, HttpFoundation
...
Revert failing asserts for UrlValidator
Mark as incomplete instead of commenting them out
2011-06-16 11:43:27 +02:00
stloyd
99f9337517
Additional tests for PhpEngine + Helpers
...
More tests for UrlValidator
2011-06-16 11:42:29 +02:00
stloyd
450ed85aa4
Additional tests for DateTimeValidator, EmailValidator and UrlValidator
2011-06-16 11:42:28 +02:00
Fabien Potencier
c7d5fd16e0
fixed CS
2011-06-15 13:46:46 +02:00
Fabien Potencier
c5223bbcd1
merged branch vicb/file (PR #1317 )
...
Commits
-------
9d6357c
[HttpFoundation] Document the changes to the File classes
136b80a
[HttFoundation] Add File::getExtension() as \SplFileInfo::getExtension() was introduced in PHP 5.3.6
38b3b74
[HttpKernel] Fix and test previous commit
ac0c00c
[HttpFoundation] Make File extends \SplFileInfo
Discussion
----------
[HttpFoundation] Make File extends \SplFileInfo
This is a rebased version of [PR 674](https://github.com/symfony/symfony/pull/674 ).
* File: The API has changed (now extends \SplFileInfo),
* File: move() creates the target directory when it does not exist
* UploadedFile: introduction of getClientXXX() methods (for Size, OriginalName, MimeType)
If this PR does not get merged UploadedFile should at least be fixed: [Client.php](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/Client.php#L124 ) relies on a last parameter which is no more defined and which is used to bypass [move_uploaded_file()](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/File/UploadedFile.php#L155 ) in test mode.
If this could be merged, I'll detail the changes in UPDATE.md
---------------------------------------------------------------------------
by fabpot at 2011/06/14 08:20:59 -0700
I'll merge it. Can you update the UPDATE file?
---------------------------------------------------------------------------
by vicb at 2011/06/14 09:24:01 -0700
done
2011-06-15 08:57:16 +02:00
Victor Berchet
ac0c00c6e8
[HttpFoundation] Make File extends \SplFileInfo
2011-06-14 10:47:04 +02:00
Albert Jessurum
ca52a04f5e
[Validator] Allow DateTime objects as valid Times
2011-06-09 15:47:51 +02:00
Fabien Potencier
17cd08dc6c
fixed CS
2011-06-08 19:56:59 +02:00
Dirk Pahl
361c67f54f
[Form] Add test for the handling of array values in the constraint violation
2011-05-18 23:48:32 +02:00
Joseph Bielawski
bf87a35595
Better comment about no test IP6 addresses for "FILTER_FLAG_NO_RES_RANGE"
2011-05-11 14:18:45 -07:00
stloyd
5997b930a5
Refactoring of IpValidator to use native php filter extension, also adding additional flag support and test cover.
2011-05-11 13:19:03 +02:00
Daniel Holmes
8d96f6c009
[Validator] fixed namespaces for validator tests
2011-05-06 02:37:03 +10:00
Igor Wiedler
afcdbf8b79
[Validator] add IPv6 support to UrlValidator
2011-04-22 17:07:44 +02:00
Fabien Potencier
1118fbdae7
[Validator] fixed unit test
2011-04-22 08:41:58 +02:00
Fabien Potencier
a9160eee70
[Validator] made fields the default option for Collection constraint
2011-03-31 15:36:04 +02:00
Johannes M. Schmitt
7887f04dc2
removed Assert prefix from all constraints, renamed annotation namespace to assert
2011-03-26 15:26:05 +01:00
Bernhard Schussek
3e29348d21
[Validator] Added support for static callbacks to Callback constraint
2011-03-25 01:36:58 +01:00
Bernhard Schussek
9c6a6e13bf
[Validator] Renamed Execute constraint to Callback
2011-03-25 01:34:35 +01:00
Fabien Potencier
8c423edfef
replaced symfony-project.org by symfony.com
2011-03-06 12:40:06 +01:00
Bernhard Schussek
5ed4d91bb8
[Validator] Implemented Execute constraint
2011-02-03 11:00:03 +01:00
Bernhard Schussek
6ad22fd702
[Validator] Added ValidatorFactory for programmatically creating validators
2011-01-19 16:25:50 +01:00
Bernhard Schussek
fea37a3e95
[Validator] Added tests for AssertTypeValidator
2011-01-19 16:25:50 +01:00
Dominique Bongiraud
64fb94c725
normalized license messages in PHP files
2011-01-18 08:07:46 +01:00
Bernhard Schussek
39c9bf160e
[Validator] Implemented @Ip constraint
2011-01-03 22:07:15 +01:00
Bernhard Schussek
52ecffe51b
[Validator] Implemented Locale constraint
2011-01-02 10:41:09 +01:00
Bernhard Schussek
993257a83e
[Validator] Implemented Language constraint
2010-12-16 10:18:33 +01:00