File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ Symfony application.
57
57
Unit Tests
58
58
----------
59
59
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 >`.
63
64
64
65
Writing Symfony unit tests is no different from writing standard PHPUnit
65
66
unit tests. Suppose, for example, that you have an *incredibly * simple class
@@ -1177,5 +1178,6 @@ Learn more
1177
1178
.. _`PHPUnit` : https://phpunit.de/
1178
1179
.. _`documentation` : https://phpunit.readthedocs.io/
1179
1180
.. _`PHPUnit Bridge component` : https://symfony.com/components/PHPUnit%20Bridge
1181
+ .. _`unit test` : https://en.wikipedia.org/wiki/Unit_testing
1180
1182
.. _`$_SERVER` : https://www.php.net/manual/en/reserved.variables.server.php
1181
1183
.. _`data providers` : https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers
You can’t perform that action at this time.
0 commit comments