Skip to content

Commit 7b04f78

Browse files
Merge branch '3.0' into 3.1
* 3.0: Tweak merge update tests to use the new error assertion helper [ci] Upgrade to symfony/phpunit-bridge >=3.2@dev
2 parents c5a7e7f + 0855bc8 commit 7b04f78

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/ParserTest.php

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

1212
namespace Symfony\Component\Yaml\Tests;
1313

14+
use Symfony\Bridge\PhpUnit\ErrorAssert;
1415
use Symfony\Component\Yaml\Yaml;
1516
use Symfony\Component\Yaml\Parser;
1617

@@ -967,11 +968,13 @@ public function testFloatKeys()
967968
*/
968969
public function testColonInMappingValueException()
969970
{
970-
$yaml = <<<EOF
971+
ErrorAssert::assertDeprecationsAreTriggered('Using a colon in the unquoted mapping value "bar: baz" in line 1 is deprecated since Symfony 2.8 and will throw a ParseException in 3.0.', function () {
972+
$yaml = <<<EOF
971973
foo: bar: baz
972974
EOF;
973975

974-
$this->parser->parse($yaml);
976+
$this->parser->parse($yaml);
977+
});
975978
}
976979

977980
public function testColonInMappingValueExceptionNotTriggeredByColonInComment()

0 commit comments

Comments
 (0)