@@ -63,7 +63,7 @@ called ``Calculator`` in the ``Util/`` directory of the app bundle::
63
63
}
64
64
65
65
To test this, create a ``CalculatorTest `` file in the ``tests/AppBundle/Util `` directory
66
- of your bundle ::
66
+ of your application ::
67
67
68
68
// tests/AppBundle/Util/CalculatorTest.php
69
69
namespace Tests\AppBundle\Util;
@@ -84,13 +84,13 @@ of your bundle::
84
84
85
85
.. note ::
86
86
87
- By convention, the ``Tests /AppBundle `` directory should replicate the directory
87
+ By convention, the ``tests /AppBundle `` directory should replicate the directory
88
88
of your bundle for unit tests. So, if you're testing a class in the
89
- ``AppBundle/Util/ `` directory, put the test in the ``tests/AppBundle/Util/ ``
89
+ ``src/ AppBundle/Util/ `` directory, put the test in the ``tests/AppBundle/Util/ ``
90
90
directory.
91
91
92
92
Just like in your real application - autoloading is automatically enabled
93
- via the ``autoload.php `` file (as configured by default in the
93
+ via the ``app/ autoload.php `` file (as configured by default in the
94
94
``phpunit.xml.dist `` file).
95
95
96
96
Running tests for a given file or directory is also very easy:
@@ -835,7 +835,7 @@ PHPUnit Configuration
835
835
836
836
Each application has its own PHPUnit configuration, stored in the
837
837
``phpunit.xml.dist `` file. You can edit this file to change the defaults or
838
- create an ``phpunit.xml `` file to set up a configuration for your local machine
838
+ create a ``phpunit.xml `` file to set up a configuration for your local machine
839
839
only.
840
840
841
841
.. tip ::
@@ -870,7 +870,7 @@ configuration adds tests from a custom ``lib/tests`` directory:
870
870
<testsuites >
871
871
<testsuite name =" Project Test Suite" >
872
872
<!-- ... --->
873
- <directory >../ lib/tests</directory >
873
+ <directory >lib/tests</directory >
874
874
</testsuite >
875
875
</testsuites >
876
876
<!-- ... --->
@@ -887,10 +887,10 @@ section:
887
887
<filter >
888
888
<whitelist >
889
889
<!-- ... -->
890
- <directory >../ lib</directory >
890
+ <directory >lib</directory >
891
891
<exclude >
892
892
<!-- ... -->
893
- <directory >../ lib/tests</directory >
893
+ <directory >lib/tests</directory >
894
894
</exclude >
895
895
</whitelist >
896
896
</filter >
0 commit comments