@@ -28,11 +28,10 @@ command:
2828.. code-block :: bash
2929
3030 # specify the configuration directory on the command line
31- $ phpunit -c app/
31+ $ phpunit
3232
33- The ``-c `` option tells PHPUnit to look in the ``app/ `` directory for a configuration
34- file. If you're curious about the PHPUnit options, check out the ``app/phpunit.xml.dist ``
35- file.
33+ PHPunit is configured by the ``phpunit.xml.dist `` file in the root of your
34+ Symfony application.
3635
3736.. tip ::
3837
@@ -93,23 +92,23 @@ of your bundle::
9392
9493Just like in your real application - autoloading is automatically enabled
9594via the ``bootstrap.php.cache `` file (as configured by default in the
96- ``app/ phpunit.xml.dist `` file).
95+ ``phpunit.xml.dist `` file).
9796
9897Running tests for a given file or directory is also very easy:
9998
10099.. code-block :: bash
101100
102101 # run all tests of the application
103- $ phpunit -c app
102+ $ phpunit
104103
105104 # run all tests in the Util directory
106- $ phpunit -c app src/AppBundle/Tests/Util
105+ $ phpunit src/AppBundle/Tests/Util
107106
108107 # run tests for the Calculator class
109- $ phpunit -c app src/AppBundle/Tests/Util/CalculatorTest.php
108+ $ phpunit src/AppBundle/Tests/Util/CalculatorTest.php
110109
111110 # run all tests for the entire Bundle
112- $ phpunit -c app src/AppBundle/
111+ $ phpunit src/AppBundle/
113112
114113 .. index ::
115114 single: Tests; Functional tests
@@ -802,23 +801,23 @@ PHPUnit Configuration
802801~~~~~~~~~~~~~~~~~~~~~
803802
804803Each application has its own PHPUnit configuration, stored in the
805- ``app/ phpunit.xml.dist `` file. You can edit this file to change the defaults or
806- create an ``app/ phpunit.xml `` file to set up a configuration for your local
807- machine only.
804+ ``phpunit.xml.dist `` file. You can edit this file to change the defaults or
805+ create an ``phpunit.xml `` file to set up a configuration for your local machine
806+ only.
808807
809808.. tip ::
810809
811- Store the ``app/ phpunit.xml.dist `` file in your code repository and ignore
812- the ``app/ phpunit.xml `` file.
810+ Store the ``phpunit.xml.dist `` file in your code repository and ignore
811+ the ``phpunit.xml `` file.
813812
814813By default, only the tests from your own custom bundles stored in the standard
815814directories ``src/*/*Bundle/Tests ``, ``src/*/Bundle/*Bundle/Tests ``,
816815``src/*Bundle/Tests `` are run by the ``phpunit `` command, as configured
817- in the ``app/ phpunit.xml.dist `` file:
816+ in the ``phpunit.xml.dist `` file:
818817
819818.. code-block :: xml
820819
821- <!-- app/ phpunit.xml.dist -->
820+ <!-- phpunit.xml.dist -->
822821 <phpunit >
823822 <!-- ... -->
824823 <testsuites >
@@ -836,7 +835,7 @@ configuration adds tests from a custom ``lib/tests`` directory:
836835
837836.. code-block :: xml
838837
839- <!-- app/ phpunit.xml.dist -->
838+ <!-- phpunit.xml.dist -->
840839 <phpunit >
841840 <!-- ... -->
842841 <testsuites >
@@ -853,7 +852,7 @@ section:
853852
854853.. code-block :: xml
855854
856- <!-- app/ phpunit.xml.dist -->
855+ <!-- phpunit.xml.dist -->
857856 <phpunit >
858857 <!-- ... -->
859858 <filter >
0 commit comments