function __construct(\Guardrail\Config $config) { $this->doc = new JUnitXml\Document(); $this->doc->formatOutput = true; $this->config = $config; $this->emitErrors = $config->getOutputLevel() == 1; $this->emitList = $config->getEmitList(); }