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 behavior, also called a *unit *. If you
61
- want to test the overall way 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
@@ -1135,5 +1136,6 @@ Learn more
1135
1136
.. _`PHPUnit` : https://phpunit.de/
1136
1137
.. _`documentation` : https://phpunit.readthedocs.io/
1137
1138
.. _`PHPUnit Bridge component` : https://symfony.com/components/PHPUnit%20Bridge
1139
+ .. _`unit test` : https://en.wikipedia.org/wiki/Unit_testing
1138
1140
.. _`$_SERVER` : https://www.php.net/manual/en/reserved.variables.server.php
1139
1141
.. _`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