You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,17 +60,16 @@ public function testDefinitions()
61
60
}
62
61
63
62
/**
64
-
* @requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered
63
+
* @group legacy
64
+
* @expectedDeprecation The "deprecated_foo" service is deprecated. You should stop using it, as it will soon be removed.
65
65
*/
66
66
publicfunctiontestCreateDeprecatedService()
67
67
{
68
-
ErrorAssert::assertDeprecationsAreTriggered('The "deprecated_foo" service is deprecated. You should stop using it, as it will soon be removed.', function () {
Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/ParserTest.php
+4-8Lines changed: 4 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,6 @@
11
11
12
12
namespaceSymfony\Component\Yaml\Tests;
13
13
14
-
useSymfony\Bridge\PhpUnit\ErrorAssert;
15
14
useSymfony\Component\Yaml\Yaml;
16
15
useSymfony\Component\Yaml\Parser;
17
16
@@ -927,19 +926,16 @@ public function testFloatKeys()
927
926
928
927
/**
929
928
* @group legacy
929
+
* @expectedDeprecation 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.
930
930
* throw ParseException in Symfony 3.0
931
-
* @requires function Symfony\Bridge\PhpUnit\ErrorAssert::assertDeprecationsAreTriggered
932
931
*/
933
932
publicfunctiontestColonInMappingValueException()
934
933
{
935
-
$parser = $this->parser;
936
-
937
-
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 () use ($parser) {
0 commit comments