PluginOutputTest: Fix case testMultilineHtmlOutput

This commit is contained in:
Johannes Meyer 2019-04-11 14:15:15 +02:00
parent fff07144c3
commit eb69a249d3
1 changed files with 6 additions and 6 deletions

View File

@ -87,18 +87,18 @@ class PluginOutputTest extends BaseTestCase
{ {
$input = array( $input = array(
'Teststatus', 'Teststatus',
'<a href="http://localhost/test.php" target="_blank">Info</a><br/><br/>', '<a href="http://localhost/test.php" target="_blank">Info</a><br/><br/>'
'<a href="http://localhost/test2.php" target="_blank">Info2</a>' . '<a href="http://localhost/test2.php" target="_blank">Info2</a>'
); );
/** @noinspection HtmlUnknownAttribute */ /** @noinspection HtmlUnknownAttribute */
$output = array( $output = array(
'Teststatus ', 'Teststatus',
'<a href="http://localhost/test.php" target="_blank"[^>]*>Info</a><br><br>', '<a href="http://localhost/test.php" target="_blank"[^>]*>Info</a><br><br>'
'<a href="http://localhost/test2.php" target="_blank"[^>]*>Info2</a>' . '<a href="http://localhost/test2.php" target="_blank"[^>]*>Info2</a>'
); );
$this->checkHtmlOutput( $this->checkHtmlOutput(
join("\n", $input), join("\n", $input),
join('', $output), join("\n", $output),
true true
); );
} }