Skip to content

Commit 9a80908

Browse files
committed
[PhpUnitBridge] Add ExpectUserDeprecationMessageTrait
1 parent aaf847b commit 9a80908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/ParserTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
namespace Symfony\Component\Yaml\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
15-
use Symfony\Bridge\PhpUnit\ExpectDeprecationTrait;
15+
use Symfony\Bridge\PhpUnit\ExpectUserDeprecationMessageTrait;
1616
use Symfony\Component\Yaml\Exception\ParseException;
1717
use Symfony\Component\Yaml\Parser;
1818
use Symfony\Component\Yaml\Tag\TaggedValue;
1919
use Symfony\Component\Yaml\Yaml;
2020

2121
class ParserTest extends TestCase
2222
{
23-
use ExpectDeprecationTrait;
23+
use ExpectUserDeprecationMessageTrait;
2424

2525
private ?Parser $parser;
2626

@@ -1037,7 +1037,7 @@ public static function getParseExceptionOnDuplicateData()
10371037
*/
10381038
public function testNullAsDuplicatedData()
10391039
{
1040-
$this->expectDeprecation('Since symfony/yaml 7.2: Duplicate key "child" detected on line 4 whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.');
1040+
$this->expectUserDeprecationMessage('Since symfony/yaml 7.2: Duplicate key "child" detected on line 4 whilst parsing YAML. Silent handling of duplicate mapping keys in YAML is deprecated and will throw a ParseException in 8.0.');
10411041

10421042
$yaml = <<<EOD
10431043
parent:

0 commit comments

Comments
 (0)