@@ -686,7 +686,7 @@ their type::
686
686
Testing Configuration
687
687
---------------------
688
688
689
- The client used by functional tests creates a Kernel that runs in a special
689
+ The Client used by functional tests creates a Kernel that runs in a special
690
690
``test `` environment. Since Symfony loads the ``app/config/config_test.yml ``
691
691
in the ``test `` environment, you can tweak any of your application's settings
692
692
specifically for testing.
@@ -767,7 +767,7 @@ PHPUnit Configuration
767
767
768
768
Each application has its own PHPUnit configuration, stored in the
769
769
``app/phpunit.xml.dist `` file. You can edit this file to change the defaults or
770
- create a ``app/phpunit.xml `` file to setup a configuration for your local
770
+ create an ``app/phpunit.xml `` file to setup a configuration for your local
771
771
machine only.
772
772
773
773
.. tip ::
@@ -777,12 +777,11 @@ machine only.
777
777
778
778
By default, only the tests from your own custom bundles stored in the standard
779
779
directories ``src/*/*Bundle/Tests `` or ``src/*/Bundle/*Bundle/Tests `` are run
780
- by the ``phpunit `` command:
780
+ by the ``phpunit `` command, as configured in the `` phpunit.xml.dist `` file :
781
781
782
782
.. code-block :: xml
783
783
784
784
<!-- app/phpunit.xml.dist -->
785
-
786
785
<phpunit >
787
786
<!-- ... -->
788
787
<testsuites >
@@ -800,7 +799,6 @@ configuration adds tests from a custom ``lib/tests`` directory:
800
799
.. code-block :: xml
801
800
802
801
<!-- app/phpunit.xml.dist -->
803
-
804
802
<phpunit >
805
803
<!-- ... -->
806
804
<testsuites >
@@ -818,18 +816,14 @@ section:
818
816
.. code-block :: xml
819
817
820
818
<!-- app/phpunit.xml.dist -->
821
-
822
819
<phpunit >
823
820
<!-- ... -->
824
821
<filter >
825
822
<whitelist >
826
- <directory >../src</ directory >
823
+ <!-- ... -- >
827
824
<directory >../lib</directory >
828
825
<exclude >
829
- <directory >../src/*/*Bundle/Resources</directory >
830
- <directory >../src/*/*Bundle/Tests</directory >
831
- <directory >../src/*/Bundle/*Bundle/Resources</directory >
832
- <directory >../src/*/Bundle/*Bundle/Tests</directory >
826
+ <!-- ... -->
833
827
<directory >../lib/tests</directory >
834
828
</exclude >
835
829
</whitelist >
0 commit comments