diff --git a/book/testing.rst b/book/testing.rst
index e868b01c85d..7a62022a1f8 100644
--- a/book/testing.rst
+++ b/book/testing.rst
@@ -480,52 +480,6 @@ To get the Profiler for the last request, do the following::
For specific details on using the profiler inside a test, see the
:doc:`/cookbook/testing/profiling` cookbook entry.
-To avoid collecting data in each test you can set the ``collect`` parameter
-in the configuration:
-
-.. configuration-block::
-
- .. code-block:: yaml
-
- # app/config/config_test.yml
-
- # ...
- framework:
- profiler:
- enabled: true
- collect: false
-
- .. code-block:: xml
-
-
-
-
-
-
-
-
-
-
-
-
- .. code-block:: php
-
- // app/config/config.php
-
- // ...
- $container->loadFromExtension('framework', array(
- 'profiler' => array(
- 'enabled' => true,
- 'collect' => false,
- ),
- ));
-
-In this way only tests that call ``enableProfiler()`` will collect data.
-
Redirecting
~~~~~~~~~~~
diff --git a/cookbook/testing/profiling.rst b/cookbook/testing/profiling.rst
index 5dacddb0837..613e997629f 100644
--- a/cookbook/testing/profiling.rst
+++ b/cookbook/testing/profiling.rst
@@ -73,3 +73,52 @@ finish. It's easy to achieve if you embed the token in the error message::
Read the API for built-in :doc:`data collectors `
to learn more about their interfaces.
+
+Speeding up Tests by not Collecting Profiler Data
+-------------------------------------------------
+
+To avoid collecting data in each test you can set the ``collect`` parameter
+to false:
+
+.. configuration-block::
+
+ .. code-block:: yaml
+
+ # app/config/config_test.yml
+
+ # ...
+ framework:
+ profiler:
+ enabled: true
+ collect: false
+
+ .. code-block:: xml
+
+
+
+
+
+
+
+
+
+
+
+
+ .. code-block:: php
+
+ // app/config/config.php
+
+ // ...
+ $container->loadFromExtension('framework', array(
+ 'profiler' => array(
+ 'enabled' => true,
+ 'collect' => false,
+ ),
+ ));
+
+In this way only tests that call ``$client->enableProfiler()`` will collect data.