Skip to content

Commit aba7b31

Browse files
authored
Update unit_testing.rst
1 parent 82bc8cf commit aba7b31

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

create_framework/unit_testing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ must be sure that it behaves as advertised. If not, all the applications based
77
on it will exhibit the same bugs. The good news is that whenever you fix a
88
bug, you are fixing a bunch of applications too.
99

10+
At first, add a (development-time) dependency on phpunit/phpunit to your
11+
``composer.json`` file:
12+
13+
.. code-block:: install
14+
15+
composer require --dev phpunit/phpunit
16+
1017
Today's mission is to write unit tests for the framework we have created by
1118
using `PHPUnit`_. Create a PHPUnit configuration file in
1219
``example.com/phpunit.xml.dist``:

0 commit comments

Comments
 (0)