Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29f86d4

Browse files
committed
minor #25452 [Validator][HttpFoundation] fix the message test (Simperfit)
This PR was merged into the 4.1-dev branch. Discussion ---------- [Validator][HttpFoundation] fix the message test | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | @fabpot I just forgot to update HttpFoundation test and there was one I missed when modifying the tests. Commits ------- d2d8049 [Validator][HttpFoundation] fix the message test
2 parents 428731f + d2d8049 commit 29f86d4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Symfony/Component/HttpFoundation/Tests/File/UploadedFileTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ public function testGetSize()
208208

209209
/**
210210
* @group legacy
211-
* @expectedDeprecation Passing a size in the constructor is deprecated since 4.1 and will be removed in 5.0. Use getSize instead.
211+
* @expectedDeprecation Passing a size in the constructor is deprecated since 4.1 and will be removed in 5.0. Use getSize() instead.
212212
*/
213213
public function testConstructDeprecatedSize()
214214
{

src/Symfony/Component/Validator/Tests/Constraints/EmailTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class EmailTest extends TestCase
1818
{
1919
/**
20-
* @expectedDeprecation The "strict" property is deprecated since version 4.1 and will be removed in 5.0. Use 'mode'=>"strict" instead.
20+
* @expectedDeprecation The "strict" property is deprecated since version 4.1 and will be removed in 5.0. Use "mode"=>"strict" instead.
2121
* @group legacy
2222
*/
2323
public function testLegacyConstructorStrict()
@@ -36,7 +36,7 @@ public function testConstructorStrict()
3636

3737
/**
3838
* @expectedException \InvalidArgumentException
39-
* @expectedExceptionMessage The 'mode' parameter value is not valid.
39+
* @expectedExceptionMessage The "mode" parameter value is not valid.
4040
*/
4141
public function testUnknownModesTriggerException()
4242
{

src/Symfony/Component/Validator/Tests/Constraints/EmailValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ public function testUnknownModesOnValidateTriggerException()
226226
}
227227

228228
/**
229-
* @expectedDeprecation The "strict" property is deprecated since version 4.1 and will be removed in 5.0. Use 'mode'=>"strict" instead.
229+
* @expectedDeprecation The "strict" property is deprecated since version 4.1 and will be removed in 5.0. Use "mode"=>"strict" instead.
230230
* @expectedDeprecation The Symfony\Component\Validator\Constraints\Email::$strict property is deprecated since version 4.1 and will be removed in 5.0. Use Symfony\Component\Validator\Constraints\Email::mode="strict" instead.
231231
* @group legacy
232232
*/

0 commit comments

Comments
 (0)