setLogFile($logFile); $log->parse(); $printer = new DefaultPrinter(); $printer->setLog($log); $this->assertEquals($logFile->getContent(), trim($printer->print())); } public function testPrintEntry(): void { $text = uniqid(); $entry = (new Entry())->addLine(new Line(1, $text)); $printer = new DefaultPrinter(); $printer->setEntry($entry); $this->assertEquals($text, trim($printer->print())); } }