public function testFormatterDoesNotThrowAnyWarnings() { $warnings = 0; try { $this->formatter->format('<html lang="en" dir="ltr"><head><title>My Website</title></head><body class="homepage"><div class="container"><h1 class="h1-title">H1 Title</h1><div class="body-content">Body Content</div></div></body></html>'); } catch (\PHPUnit_Framework_Error_Warning $exception) { $warnings++; } $this->assertEquals(0, $warnings, 'Failed to assert that the formatter does not throw any exceptions'); }
public function format($src) { $this->lineNumbers = false; $this->height = 0; $this->inline = true; return parent::format($src); }