Skip to content

Commit f88645a

Browse files
committed
fix tests
1 parent 0ffd65a commit f88645a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/ParameterBagTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ public function testGetInt()
192192
*/
193193
public function testGetIntExceptionWithArray()
194194
{
195-
$this->expectDeprecation('Since symfony/http-foundation 6.3: Ignoring invalid values when using "Symfony\Component\HttpFoundation\ParameterBag::getInt(\'digits\')" is deprecated and will throw an "UnexpectedValueException" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.');
195+
$this->expectDeprecation(sprintf('Since symfony/http-foundation 6.3: Ignoring invalid values when using "%s::getInt(\'digits\')" is deprecated and will throw an "%s" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.', ParameterBag::class, UnexpectedValueException::class));
196196

197197
$bag = new ParameterBag(['digits' => ['123']]);
198198
$result = $bag->getInt('digits', 0);
@@ -204,7 +204,7 @@ public function testGetIntExceptionWithArray()
204204
*/
205205
public function testGetIntExceptionWithInvalid()
206206
{
207-
$this->expectDeprecation('Since symfony/http-foundation 6.3: Ignoring invalid values when using "Symfony\Component\HttpFoundation\ParameterBag::getInt(\'word\')" is deprecated and will throw an "UnexpectedValueException" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.');
207+
$this->expectDeprecation(sprintf('Since symfony/http-foundation 6.3: Ignoring invalid values when using "%s::getInt(\'word\')" is deprecated and will throw an "%s" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.', ParameterBag::class, UnexpectedValueException::class));
208208

209209
$bag = new ParameterBag(['word' => 'foo_BAR_012']);
210210
$result = $bag->getInt('word', 0);
@@ -339,7 +339,7 @@ public function testGetBoolean()
339339
*/
340340
public function testGetBooleanExceptionWithInvalid()
341341
{
342-
$this->expectDeprecation('Since symfony/http-foundation 6.3: Ignoring invalid values when using "Symfony\Component\HttpFoundation\ParameterBag::getBoolean(\'invalid\')" is deprecated and will throw an "UnexpectedValueException" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.');
342+
$this->expectDeprecation(sprintf('Since symfony/http-foundation 6.3: Ignoring invalid values when using "%s::getBoolean(\'invalid\')" is deprecated and will throw an "%s" in 7.0; use method "filter()" with flag "FILTER_NULL_ON_FAILURE" to keep ignoring them.', ParameterBag::class, UnexpectedValueException::class));
343343

344344
$bag = new ParameterBag(['invalid' => 'foo']);
345345
$result = $bag->getBoolean('invalid', 0);

0 commit comments

Comments
 (0)