ReportAlreadyFinalizedException
public function addTest(string $test) : void { if ($this->finalized) { throw new ReportAlreadyFinalizedException(); } $this->writer ->startElement('covered'); $this->writer ->writeAttribute('by', $test); $this->writer ->endElement(); }