8000 PHP Unit parameters · programaths/symfony-docs@4ccd2ab · GitHub
[go: up one dir, main page]

Skip to content

Commit 4ccd2ab

Browse files
committed
PHP Unit parameters
It seems that with PHPUnit 4.1.6 the directory has to be specified.
1 parent 7cbad6d commit 4ccd2ab

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

book/testing.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ it has its own excellent `documentation`_.
1919

2020
Symfony2 works with PHPUnit 3.5.11 or later, though version 3.6.4 is
2121
needed to test the Symfony core code itself.
22+
2223

2324
Each test - whether it's a unit test or a functional test - is a PHP class
2425
that should live in the ``Tests/`` subdirectory of your bundles. If you follow
@@ -29,6 +30,18 @@ command:
2930
3031
# specify the configuration directory on the command line
3132
$ phpunit -c app/
33+
34+
.. note::
35+
36+
If have the ``No tests executed!``
37+
message in, specify the "src" directory at the
38+
end of the command.
39+
40+
.. code-block:: bash
41+
42+
# specify the configuration directory on the command line
43+
$ phpunit -c app/ arc/
44+
3245
3346
The ``-c`` option tells PHPUnit to look in the ``app/`` directory for a configuration
3447
file. If you're curious about the PHPUnit options, check out the ``app/phpunit.xml.dist``

0 commit comments

Comments
 (0)
0