I want to enable the symfony profiler for my tests,I followed this documentation but my profiler stay empty. I'm using PHPUnit 7.5.16, and Symfony 4.3.4 with PHP 7.2.19. What should I add ?
#web_profiler:
# toolbar: false
# intercept_redirects: false
#
#framework:
# profiler: { collect: false }
web_profiler:
toolbar: true
intercept_redirects: false
framework:
# profiler: { only_exceptions: false }
# make tests slowest, but it s usefull in local,watch this doc: https://symfony.com/doc/current/testing/profiling.html
profiler: { enabled: true, collect: false }
and in the setUp() method I have
parent::setUp();
$client = static::createClient();
$client->enableProfiler();
Aucun commentaire:
Enregistrer un commentaire