Question : symfony test environment
Answered by : estelle-gaits
// ...
// ensure a fresh cache when debug mode is disabled
(new \Symfony\Component\Filesystem\Filesystem())->remove(__DIR__.'/../var/cache/test');
Source : https://symfony.com/doc/current/testing.html | Last Update : Mon, 30 Aug 21