Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Testing] Fix phpunit test dir paths #3343

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 3 commits into from
Mar 13, 2014
Merged
Changes from 1 commit
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
Prev Previous commit
Fixes after review
  • Loading branch information
bicpi committed Jan 2, 2014
commit 75bd1e51e342cb34e9ddc1d0271aad72acfc527a
16 changes: 5 additions & 11 deletions 16 book/testing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ their type::
Testing Configuration
---------------------

The client used by functional tests creates a Kernel that runs in a special
The Client used by functional tests creates a Kernel that runs in a special
``test`` environment. Since Symfony loads the ``app/config/config_test.yml``
in the ``test`` environment, you can tweak any of your application's settings
specifically for testing.
Expand Down Expand Up @@ -767,7 +767,7 @@ PHPUnit Configuration

Each application has its own PHPUnit configuration, stored in the
``app/phpunit.xml.dist`` file. You can edit this file to change the defaults or
create a ``app/phpunit.xml`` file to setup a configuration for your local
create an ``app/phpunit.xml`` file to setup a configuration for your local
machine only.

.. tip::
Expand All @@ -777,12 +777,11 @@ machine only.

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:
by the ``phpunit`` command, as configured in the ``phpunit.xml.dist`` file:

.. code-block:: xml

<!-- app/phpunit.xml.dist -->

<phpunit>
<!-- ... -->
<testsuites>
Expand All @@ -800,7 +799,6 @@ configuration adds tests from a custom ``lib/tests`` directory:
.. code-block:: xml

<!-- app/phpunit.xml.dist -->

<phpunit>
<!-- ... -->
<testsuites>
Expand All @@ -818,18 +816,14 @@ section:
.. code-block:: xml

<!-- app/phpunit.xml.dist -->

<phpunit>
<!-- ... -->
<filter>
<whitelist>
<directory>../src</directory>
<!-- ... -->
<directory>../lib</directory>
<exclude>
<directory>../src/*/*Bundle/Resources</directory>
<directory>../src/*/*Bundle/Tests</directory>
<directory>../src/*/Bundle/*Bundle/Resources</directory>
<directory>../src/*/Bundle/*Bundle/Tests</directory>
<!-- ... -->
<directory>../lib/tests</directory>
</exclude>
</whitelist>
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.