-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DependencyInjection] fix dumped YAML snytax #17814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -56,4 +54,9 @@ public function testAddService() | |||
$this->assertEquals('Unable to dump a service container if a parameter is an object or a resource.', $e->getMessage(), '->dump() throws a RuntimeException if the container to be dumped has reference to objects or resources'); | |||
} | |||
} | |||
|
|||
private function assertDumpedYamlEqualsExpectedStructure($yaml, $expected, $message = '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not very fond of this method's name. In PHPUnit there is a assertEqualXMLStructure()
method, so maybe we could use something like: assertEqualYamlStructure()
or assertEqualParsedYaml()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like assertEqualYamlStructure()
. Changed it everywhere to use this method name.
200ea4f
to
30388f1
Compare
Thank you @xabbuh. |
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] fix dumped YAML snytax | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | see the failing tests in #17809 Commits ------- 30388f1 [DependencyInjection] fix dumped YAML snytax
…er feature (xabbuh) This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] don't rely on deprecated YAML parser feature | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17814 | License | MIT | Doc PR | see [failing tests for the 2.7 branch](https://travis-ci.org/symfony/symfony/jobs/109537695#L2238) Commits ------- c8d387f don't rely on deprecated YAML parser feature
see the failing tests in #17809