Commit 25a6e7a
committed
minor #7391 Fix missing key for time-sensitive tests (z38)
This PR was merged into the 2.8 branch.
Discussion
----------
Fix missing key for time-sensitive tests
The Symfony test listener [prints a warning](https://github.com/symfony/symfony/blob/4491eb64633f1945537e8a6a07adbb3ef5c1f802/src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php#L66) when numeric keys are used to configure mocked namespaces.
As the specification of multiple namespaces might be a bit intuitive (I can't add multiple `<element key="time-sensitive">`), maybe the following example would be better:
```xml
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener">
<arguments>
<array>
<element key="time-sensitive">
<array>
<element><string>Symfony\Component\HttpFoundation</string></element>
</array>
</element>
</array>
</arguments>
</listener>
```
Commits
-------
1d1c58b Fix missing key for time-sensitive tests1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments