From a76494f95036cbdc96507f1f6c566072b99e8bc2 Mon Sep 17 00:00:00 2001 From: Igor <31731246+fzsys@users.noreply.github.com> Date: Fri, 21 Jan 2022 09:32:56 +0200 Subject: [PATCH] Update unit_testing.rst --- create_framework/unit_testing.rst | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/create_framework/unit_testing.rst b/create_framework/unit_testing.rst index b71eea34f50..c3801481a3f 100644 --- a/create_framework/unit_testing.rst +++ b/create_framework/unit_testing.rst @@ -8,8 +8,13 @@ on it will exhibit the same bugs. The good news is that whenever you fix a bug, you are fixing a bunch of applications too. Today's mission is to write unit tests for the framework we have created by -using `PHPUnit`_. Create a PHPUnit configuration file in -``example.com/phpunit.xml.dist``: +using `PHPUnit`_. At first, install PHPUnit as a development dependency: + +.. code-block:: terminal + + $ composer require --dev phpunit/phpunit + +Then, create a PHPUnit configuration file in ``example.com/phpunit.xml.dist``: .. code-block:: xml