symfony/symfony-docs — pull request #2952 by danieledangeli (2013-09-06 09:04:34+00:00)
Title: Enabling profiler in test

Some people have open issues about how enabling the profiler in test enviroment. The option enable profiler working correctly but some people don't want enabling the data collecting in each tests. So you can define in config_test.yml the collect parameter to false. The data will collect only in tests that call
$client->enableProfiler();