Skip to content

Commit 3d42c56

Browse files
Merge branch '3.1'
* 3.1: [2.8][PhpUnitBridge] Drop ErrorAssert in favor of @expectedDeprecation [3.1][PhpUnitBridge] Drop ErrorAssert in favor of @expectedDeprecation
2 parents a11873c + 7d200b1 commit 3d42c56

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

@@ -303,14 +302,12 @@ public function getScalarIndicators()
303302

304303
/**
305304
* @group legacy
306-
* @requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered
305+
* @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.
307306
* throws \Symfony\Component\Yaml\Exception\ParseException in 4.0
308307
*/
309308
public function testParseUnquotedScalarStartingWithPercentCharacter()
310309
{
311-
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 () {
312-
Inline::parse('{ foo: %foo }');
313-
});
310+
Inline::parse('{ foo: %bar }');
314311
}
315312

316313
/**

0 commit comments

Comments
 (0)