Skip to content

[book] [testing] fixed the path of the phpunit.xml file #3734

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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