Skip to content

Commit 50a48dd

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Reword Change unit test definition
2 parents 14ae626 + b310e18 commit 50a48dd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

testing.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ Symfony application.
5757
Unit Tests
5858
----------
5959

60-
A unit test is a test against a single PHP class, also called a *unit*. If you
61-
want to test the overall behavior of your application, see the section about
62-
:ref:`Functional Tests <functional-tests>`.
60+
A `unit test`_ ensures that individual units of source code (e.g. a single class
61+
or some specific method in some class) meet their design and behave as intended.
62+
If you want to test an entire feature of your application (e.g. registering as a
63+
user or generating an invoice), see the section about :ref:`Functional Tests <functional-tests>`.
6364

6465
Writing Symfony unit tests is no different from writing standard PHPUnit
6566
unit tests. Suppose, for example, that you have an *incredibly* simple class
@@ -1177,5 +1178,6 @@ Learn more
11771178
.. _`PHPUnit`: https://phpunit.de/
11781179
.. _`documentation`: https://phpunit.readthedocs.io/
11791180
.. _`PHPUnit Bridge component`: https://symfony.com/components/PHPUnit%20Bridge
1181+
.. _`unit test`: https://en.wikipedia.org/wiki/Unit_testing
11801182
.. _`$_SERVER`: https://www.php.net/manual/en/reserved.variables.server.php
11811183
.. _`data providers`: https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers

0 commit comments

Comments
 (0)