Skip to content

Commit 6478d46

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: Tweaks [Testing] fix phpunit.dist.xml code example
2 parents ee6b06c + d3dda4c commit 6478d46

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

testing/end_to_end.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,16 @@ When using the extension in conjunction with the ``PANTHER_ERROR_SCREENSHOT_DIR`
7676
environment variable, tests using the Panther client that fail or error (after the
7777
client is created) will automatically get a screenshot taken to help debugging.
7878

79-
To register the Panther extension, add the following lines to ``phpunit.xml.dist``:
79+
To register the Panther extension, add the following lines to ``phpunit.dist.xml``
80+
(in legacy PHPUnit versions older than 10, the file is named ``phpunit.xml.dist``):
8081

8182
.. code-block:: xml
8283
83-
<!-- phpunit.xml.dist -->
84+
<!-- phpunit.dist.xml -->
8485
<extensions>
86+
<!-- use this with PHPUnit 10 or newer -->
87+
<bootstrap class="Symfony\Component\Panther\ServerExtension"/>
88+
<!-- use this with legacy PHPUnit versions older than 10 -->
8589
<extension class="Symfony\Component\Panther\ServerExtension"/>
8690
</extensions>
8791

0 commit comments

Comments
 (0)