diff --git a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
index c2ebfc92c4..e032cef941 100644
--- a/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
+++ b/core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
@@ -35,9 +35,9 @@ public function testOutput() {
// Check that there are
tags for the HTML output by
// SimpletestUiPrinter.
- $this->assertEqual($output[20], 'HTML output was generated
');
+ $this->assertEqual($output[19], 'HTML output was generated
');
// Check that URLs are printed as HTML links.
- $this->assertIdentical(strpos($output[21], '