Skip to content

Commit 9ae575b

Browse files
author
Tim Jabs
committed
Moved tip block to headline. Changed tip description.
1 parent dcf2265 commit 9ae575b

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

testing.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ tests as far as PHPUnit is concerned, but they have a very specific workflow:
129129
Your First Functional Test
130130
~~~~~~~~~~~~~~~~~~~~~~~~~~
131131

132+
First, install the BrowserKit component in your project:
133+
134+
.. code-block:: terminal
135+
136+
$ composer require --dev browser-kit
137+
132138
Functional tests are simple PHP files that typically live in the ``tests/Controller``
133139
directory for your bundle. If you want to test the pages handled by your
134140
``PostController`` class, start by creating a new ``PostControllerTest.php``
@@ -155,11 +161,7 @@ As an example, a test could look like this::
155161
);
156162
}
157163
}
158-
159-
.. tip::
160-
161-
  Do not forget to require the ``browser-kit`` component via ``composer require browser-kit``, if you want to use the ``WebTestCase`` class.
162-
164+
163165
.. tip::
164166

165167
To run your functional tests, the ``WebTestCase`` class needs to know which

0 commit comments

Comments
 (0)