Skip to content

Commit 6ce40dc

Browse files
committed
replace expectDeprecation() with expectUserDeprecationMessage()
1 parent c81427d commit 6ce40dc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/Caster/ResourceCasterTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
namespace Symfony\Component\VarDumper\Tests\Caster;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
15+
use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait;
1616
use Symfony\Component\VarDumper\Caster\ResourceCaster;
1717
use Symfony\Component\VarDumper\Cloner\Stub;
1818
use Symfony\Component\VarDumper\Test\VarDumperTestTrait;
1919

2020
class ResourceCasterTest extends TestCase
2121
{
22-
use ExpectDeprecationTrait;
22+
use ExpectUserDeprecationMessageTrait;
2323
use VarDumperTestTrait;
2424

2525
/**
@@ -33,7 +33,7 @@ public function testCastCurlIsDeprecated()
3333
curl_setopt($ch, \CURLOPT_RETURNTRANSFER, true);
3434
curl_exec($ch);
3535

36-
$this->expectDeprecation('Since symfony/var-dumper 7.3: The "Symfony\Component\VarDumper\Caster\ResourceCaster::castCurl()" method is deprecated without replacement.');
36+
$this->expectUserDeprecationMessage('Since symfony/var-dumper 7.3: The "Symfony\Component\VarDumper\Caster\ResourceCaster::castCurl()" method is deprecated without replacement.');
3737

3838
ResourceCaster::castCurl($ch, [], new Stub(), false);
3939
}
@@ -47,7 +47,7 @@ public function testCastGdIsDeprecated()
4747
{
4848
$gd = imagecreate(1, 1);
4949

50-
$this->expectDeprecation('Since symfony/var-dumper 7.3: The "Symfony\Component\VarDumper\Caster\ResourceCaster::castGd()" method is deprecated without replacement.');
50+
$this->expectUserDeprecationMessage('Since symfony/var-dumper 7.3: The "Symfony\Component\VarDumper\Caster\ResourceCaster::castGd()" method is deprecated without replacement.');
5151

5252
ResourceCaster::castGd($gd, [], new Stub(), false);
5353
}

0 commit comments

Comments
 (0)