From a6a90f79642f2884cf9dd54aa62e5431e5d1641d Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Wed, 16 Mar 2016 12:10:03 +0100 Subject: [PATCH] refs #5898 Fix updates of testing.rst for 3.0 --- book/testing.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/book/testing.rst b/book/testing.rst index fc9a66f6cd7..ec1e9ea4f10 100644 --- a/book/testing.rst +++ b/book/testing.rst @@ -63,7 +63,7 @@ called ``Calculator`` in the ``Util/`` directory of the app bundle:: } To test this, create a ``CalculatorTest`` file in the ``tests/AppBundle/Util`` directory -of your bundle:: +of your application:: // tests/AppBundle/Util/CalculatorTest.php namespace Tests\AppBundle\Util; @@ -84,13 +84,13 @@ of your bundle:: .. note:: - By convention, the ``Tests/AppBundle`` directory should replicate the directory + By convention, the ``tests/AppBundle`` directory should replicate the directory of your bundle for unit tests. So, if you're testing a class in the - ``AppBundle/Util/`` directory, put the test in the ``tests/AppBundle/Util/`` + ``src/AppBundle/Util/`` directory, put the test in the ``tests/AppBundle/Util/`` directory. Just like in your real application - autoloading is automatically enabled -via the ``autoload.php`` file (as configured by default in the +via the ``app/autoload.php`` file (as configured by default in the ``phpunit.xml.dist`` file). Running tests for a given file or directory is also very easy: @@ -790,7 +790,7 @@ PHPUnit Configuration Each application has its own PHPUnit configuration, stored in the ``phpunit.xml.dist`` file. You can edit this file to change the defaults or -create an ``phpunit.xml`` file to set up a configuration for your local machine +create a ``phpunit.xml`` file to set up a configuration for your local machine only. .. tip:: @@ -825,7 +825,7 @@ configuration adds tests from a custom ``lib/tests`` directory: - ../lib/tests + lib/tests @@ -842,10 +842,10 @@ section: - ../lib + lib - ../lib/tests + lib/tests