Skip to content

Commit

Permalink
bug #3734 [book] [testing] fixed the path of the phpunit.xml file (ja…
Browse files Browse the repository at this point in the history
…viereguiluz)

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
  • Loading branch information
weaverryan committed Apr 2, 2014
2 parents 499ba5c + a1f5cd6 commit d92545e
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 d92545e

Please sign in to comment.