Skip to content

Commit d92545e

Browse files
committed
bug symfony#3734 [book] [testing] fixed the path of the phpunit.xml file (javiereguiluz)
This PR was merged into the 2.3 branch. Discussion ---------- [book] [testing] fixed the path of the phpunit.xml file | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.3+ | Fixed tickets | - Sometimes is referenced as phpunit.xml and other times as app/phpunit.xml I think that we should always use the explicit app/phpunit.xml path, except when explaining the phpunit.xml file in general. Commits ------- a1f5cd6 [book] [testing] fixed the path of the phpunit.xml file
2 parents 499ba5c + a1f5cd6 commit d92545e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

book/testing.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ of your bundle::
8989
directory, put the test in the ``Tests/Utility/`` directory.
9090

9191
Just like in your real application - autoloading is automatically enabled
92-
via the ``bootstrap.php.cache`` file (as configured by default in the ``phpunit.xml.dist``
93-
file).
92+
via the ``bootstrap.php.cache`` file (as configured by default in the
93+
``app/phpunit.xml.dist`` file).
9494

9595
Running tests for a given file or directory is also very easy:
9696

@@ -777,12 +777,12 @@ machine only.
777777

778778
.. tip::
779779

780-
Store the ``phpunit.xml.dist`` file in your code repository and ignore the
781-
``phpunit.xml`` file.
780+
Store the ``app/phpunit.xml.dist`` file in your code repository and ignore
781+
the ``app/phpunit.xml`` file.
782782

783783
By default, only the tests from your own custom bundles stored in the standard
784784
directories ``src/*/*Bundle/Tests`` or ``src/*/Bundle/*Bundle/Tests`` are run
785-
by the ``phpunit`` command, as configured in the ``phpunit.xml.dist`` file:
785+
by the ``phpunit`` command, as configured in the ``app/phpunit.xml.dist`` file:
786786

787787
.. code-block:: xml
788788

0 commit comments

Comments
 (0)