8000 minor #20827 [Config] Do not skip YamlReferenceDumperTest entirely (o… · symfony/symfony@be72520 · GitHub
[go: up one dir, main page]

Skip to content

Commit be72520

Browse files
committed
minor #20827 [Config] Do not skip YamlReferenceDumperTest entirely (ogizanagi)
This PR was merged into the 2.7 branch. Discussion ---------- [Config] Do not skip YamlReferenceDumperTest entirely | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | N/A | License | MIT | Doc PR | N/A The test is now completed in 3.2, but for older branch, any changes in the `YamlReferenceDumper` is not tested on travis and requires to test it manually or comment the `markTestIncomplete` line. `assertEquals` should still be used on 3.2. Commits ------- 1ed9335 [Config] Do not skip YamlReferenceDumperTest entirely
2 parents 42929dd + 1ed9335 commit be72520

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public function testDumper()
2222

2323
$dumper = new YamlReferenceDumper();
2424

25+
$this->assertContains($this->getConfigurationAsString(), $dumper->dump($configuration));
2526
$this->markTestIncomplete('The Yaml Dumper currently does not support prototyped arrays');
26-
$this->assertEquals($this->getConfigurationAsString(), $dumper->dump($configuration));
2727
}
2828

2929
private function getConfigurationAsString()
@@ -32,7 +32,7 @@ private function getConfigurationAsString()
3232
acme_root:
3333
boolean: true
3434
scalar_empty: ~
35-
scalar_null: ~
35+
scalar_null: null
3636
scalar_true: true
3737
scalar_false: false
3838
scalar_default: default
@@ -60,10 +60,6 @@ enum: ~ # One of "this"; "that"
6060
6161
# Prototype
6262
name: ~
63-
connections:
64-
# Prototype
65-
- { user: ~, pass: ~ }
66-
6763
EOL;
6864
}
6965
}

0 commit comments

Comments
 (0)
0