Skip to content

Commit 7d200b1

Browse files
[3.1][PhpUnitBridge] Drop ErrorAssert in favor of @expectedDeprecation
1 parent 368b973 commit 7d200b1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Tests/InlineTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
namespace Symfony\Component\Yaml\Tests;
1313

14-
use Symfony\Bridge\PhpUnit\ErrorAssert;
1514
use Symfony\Component\Yaml\Inline;
1615
use Symfony\Component\Yaml\Yaml;
1716

@@ -255,14 +254,12 @@ public function getScalarIndicators()
255254

256255
/**
257256
* @group legacy
258-
* @requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered
257+
* @expectedDeprecation Not quoting the scalar "%bar " starting with the "%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0.
259258
* throws \Symfony\Component\Yaml\Exception\ParseException in 4.0
260259
*/
261260
public function testParseUnquotedScalarStartingWithPercentCharacter()
262261
{
263-
ErrorAssert::assertDeprecationsAreTriggered('Not quoting the scalar "%foo " starting with the "%" indicator character is deprecated since Symfony 3.1 and will throw a ParseException in 4.0.', function () {
264-
Inline::parse('{ foo: %foo }');
265-
});
262+
Inline::parse('{ foo: %bar }');
266263
}
267264

268265
/**

0 commit comments

Comments
 (0)