diff --git a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
index 591e40c..324bf1d 100644
--- a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
+++ b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
@@ -33,13 +33,9 @@ public function testOutput() {
$output = [];
simpletest_phpunit_run_command([SimpletestPhpunitBrowserTest::class], $phpunit_junit_file, $status, $output);
- $this->verbose(print_r($output, TRUE));
-
// Check that there are
tags for the HTML output by
// SimpletestUiPrinter.
$this->assertEqual($output[18], 'HTML output was generated
');
- // @todo Remove this, just looking what is different on the testbot.
- $this->assertEqual([], $output);
// Check that URLs are printed as HTML links.
$this->assertIdentical(strpos($output[19], 'test');
}
// No need to keep the file around any more.
unlink($this->browserOutputFile);
diff --git a/core/tests/Drupal/Tests/Listeners/SimpletestUiPrinter.php b/core/tests/Drupal/Tests/Listeners/SimpletestUiPrinter.php
index 78017e8..2680606 100644
--- a/core/tests/Drupal/Tests/Listeners/SimpletestUiPrinter.php
+++ b/core/tests/Drupal/Tests/Listeners/SimpletestUiPrinter.php
@@ -15,14 +15,12 @@ class SimpletestUiPrinter extends HtmlOutputPrinter {
public function write($buffer) {
$buffer = Html::escape($buffer);
// Turn HTML output URLs into clickable link tags.
- $url_pattern = '@(http)(s)?(://)?(([a-zA-Z])([-\w]+\.)+([^\s\.]+[^\s]*)+[^,.\s])@';
+ $url_pattern = '@(http)(s)?(://)?([^\s]+)@';
$buffer = preg_replace($url_pattern, '$0', $buffer);
// Make the output readable in HTML by breaking up lines properly.
$buffer = nl2br($buffer);
print $buffer;
- //@todo remove this
- print " in SimpletestUiPrinter\n";
}
}