Skip to content

Commit

Permalink
[book] [testing] fixed the path of the phpunit.xml file
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
javiereguiluz committed Mar 29, 2014
1 parent 9f26da8 commit a1f5cd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ of your bundle::
directory, put the test in the ``Tests/Utility/`` directory.

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

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

Expand Down Expand Up @@ -777,12 +777,12 @@ machine only.

.. tip::

Store the ``phpunit.xml.dist`` file in your code repository and ignore the
``phpunit.xml`` file.
Store the ``app/phpunit.xml.dist`` file in your code repository and ignore
the ``app/phpunit.xml`` file.

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

.. code-block:: xml
Expand Down

0 comments on commit a1f5cd6

Please sign in to comment.