@@ -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:
@@ -790,7 +790,7 @@ PHPUnit Configuration
790
790
791
791
Each application has its own PHPUnit configuration, stored in the
792
792
``phpunit.xml.dist `` file. You can edit this file to change the defaults or
793
- create an ``phpunit.xml `` file to set up a configuration for your local machine
793
+ create a ``phpunit.xml `` file to set up a configuration for your local machine
794
794
only.
795
795
796
796
.. tip ::
@@ -825,7 +825,7 @@ configuration adds tests from a custom ``lib/tests`` directory:
825
825
<testsuites >
826
826
<testsuite name =" Project Test Suite" >
827
827
<!-- ... --->
828
- <directory >../ lib/tests</directory >
828
+ <directory >lib/tests</directory >
829
829
</testsuite >
830
830
</testsuites >
831
831
<!-- ... --->
@@ -842,10 +842,10 @@ section:
842
842
<filter >
843
843
<whitelist >
844
844
<!-- ... -->
845
- <directory >../ lib</directory >
845
+ <directory >lib</directory >
846
846
<exclude >
847
847
<!-- ... -->
848
- <directory >../ lib/tests</directory >
848
+ <directory >lib/tests</directory >
849
849
</exclude >
850
850
</whitelist >
851
851
</filter >
0 commit comments