use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpKernel\DataCollector\DumpDataCollector;
class DumpDataCollectorPassTest extends TestCase
{ public function testProcessWithoutFileLinkFormatParameter() { $container =
new ContainerBuilder();
$container->
addCompilerPass(new DumpDataCollectorPass());
$definition =
new Definition(DumpDataCollector::
class,
[null, null, null, null
]);
$container->
setDefinition('data_collector.dump',
$definition);
$container->
compile();
$this->
assertNull($definition->
getArgument(1
));
} public function testProcessWithToolbarEnabled() {