minor #46717 [Yaml] Enhance coverage in yaml DumperTest. (donquixote)
minor #46717 [Yaml] Enhance coverage in yaml DumperTest. (donquixote)

This PR was submitted for the 6.2 branch but it was squashed and merged into the 4.4 branch instead.

Discussion
----------

[Yaml] Enhance coverage in yaml DumperTest.

| Q             | A
| ------------- | ---
| Branch?       | 6.1 or 6.2 TBD
| Bug fix?      | no/TBD - it increases test coverage. Not really a bug, but also not a feature.
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #46716
| License       | MIT
| Doc PR        | -

Currently the following mutation in Yaml would not cause test fail:

```diff
diff --git a/Dumper.php b/Dumper.php
index 56979c7..39dc925 100644
--- a/Dumper.php
+++ b/Dumper.php
@@ -124,6 +124,10 @@ public function dump(mixed $input, int $inline = 0, int $indent = 0, int $flags

                 $willBeInlined = $inline - 1 <= 0 || !\is_array($value) && $dumpObjectAsInlineMap || empty($value);

+                if (!$willBeInlined && !$dumpAsMap) {
+                  ++$indent;
+                }
+
                 $output .= sprintf('%s%s%s%s',
                     $prefix,
                     $dumpAsMap ? Inline::dump($key, $flags).':' : '-',
```

Commits
-------

c5834becf3 [Yaml] Enhance coverage in yaml DumperTest.

paradajozsef/symfony,sgehrig/symfony,nicolas-grekas/symfony,HeahDude/symfony,curry684/symfony,d-ph/symfony,nicolas-grekas/symfony,derrabus/symfony,sgehrig/symfony,d-ph/symfony,paradajozsef/symfony,symfony/symfony,xabbuh/symfony,d-ph/symfony,damienalexandre/symfony,xabbuh/symfony,symfony/symfony,symfony/symfony,sgehrig/symfony,curry684/symfony,paradajozsef/symfony,symfony/symfony,damienalexandre/symfony,sgehrig/symfony,nicolas-grekas/symfony,curry684/symfony,xabbuh/symfony,derrabus/symfony,derrabus/symfony,d-ph/symfony,nicolas-grekas/symfony,paradajozsef/symfony,curry684/symfony,damienalexandre/symfony,HeahDude/symfony,HeahDude/symfony,derrabus/symfony,damienalexandre/symfony,xabbuh/symfony,HeahDude/symfony