Skip to content

Commit a6a90f7

Browse files
refs #5898 Fix updates of testing.rst for 3.0
1 parent 24c2404 commit a6a90f7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

book/testing.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ called ``Calculator`` in the ``Util/`` directory of the app bundle::
6363
}
6464

6565
To test this, create a ``CalculatorTest`` file in the ``tests/AppBundle/Util`` directory
66-
of your bundle::
66+
of your application::
6767

6868
// tests/AppBundle/Util/CalculatorTest.php
6969
namespace Tests\AppBundle\Util;
@@ -84,13 +84,13 @@ of your bundle::
8484

8585
.. note::
8686

87-
By convention, the ``Tests/AppBundle`` directory should replicate the directory
87+
By convention, the ``tests/AppBundle`` directory should replicate the directory
8888
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/``
9090
directory.
9191

9292
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
9494
``phpunit.xml.dist`` file).
9595

9696
Running tests for a given file or directory is also very easy:
@@ -790,7 +790,7 @@ PHPUnit Configuration
790790

791791
Each application has its own PHPUnit configuration, stored in the
792792
``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
794794
only.
795795

796796
.. tip::
@@ -825,7 +825,7 @@ configuration adds tests from a custom ``lib/tests`` directory:
825825
<testsuites>
826826
<testsuite name="Project Test Suite">
827827
<!-- ... --->
828-
<directory>../lib/tests</directory>
828+
<directory>lib/tests</directory>
829829
</testsuite>
830830
</testsuites>
831831
<!-- ... --->
@@ -842,10 +842,10 @@ section:
842842
<filter>
843843
<whitelist>
844844
<!-- ... -->
845-
<directory>../lib</directory>
845+
<directory>lib</directory>
846846
<exclude>
847847
<!-- ... -->
848-
<directory>../lib/tests</directory>
848+
<directory>lib/tests</directory>
849849
</exclude>
850850
</whitelist>
851851
</filter>

0 commit comments

Comments
 (0)