8000 [DependencyInjection] fix dumped YAML snytax by xabbuh · Pull Request #17814 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[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

Merged
merged 1 commit into from
Feb 16, 2016

Conversation

xabbuh
Copy link
Member
@xabbuh xabbuh commented Feb 15, 2016
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

@@ -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 = '')
Copy link
Member

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().

Copy link
Member Author

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.

@xabbuh xabbuh force-pushed the yaml-dumper-syntax branch from 200ea4f to 30388f1 Compare February 15, 2016 21:04
@fabpot
Copy link
Member
fabpot commented Feb 16, 2016

Thank you @xabbuh.

@fabpot fabpot merged commit 30388f1 into symfony:2.3 Feb 16, 2016
fabpot added a commit that referenced this pull request Feb 16, 2016
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
@xabbuh xabbuh deleted the yaml-dumper-syntax branch February 16, 2016 06:24
xabbuh added a commit that referenced this pull request Feb 16, 2016
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0