diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
index b6c19d9..224e921 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/PhpUnitErrorTest.php
@@ -24,8 +24,16 @@ public function testPhpUnitXmlParsing() {
require_once __DIR__ . '/../../../../simpletest.module';
$phpunit_error_xml = __DIR__ . '/phpunit_error.xml';
$res = simpletest_phpunit_xml_to_rows(1, $phpunit_error_xml);
+ $this->assertEquals(count($res), 4, 'All testcases got extracted');
$this->assertNotEquals($res[0]['status'], 'pass');
$this->assertEquals($res[0]['status'], 'fail');
+
+ // Test nested testsuites, which appear when you use @dataProvider.
+ for ($i = 0; $i < 3; $i++) {
+ $this->assertNotEquals($res[$i + 1]['status'], 'pass');
+ $this->assertEquals($res[$i + 1]['status'], 'fail');
+ }
+
// Make sure simpletest_phpunit_xml_to_rows() does not balk if the test
// didn't run.
simpletest_phpunit_xml_to_rows(1, 'foobar');
diff --git a/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml b/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml
index b1c0837..08a0ea9 100644
--- a/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml
+++ b/core/modules/simpletest/tests/Drupal/simpletest/Tests/phpunit_error.xml
@@ -18,4 +18,38 @@ Undefined index: foo
+
+
+
+ Drupal\Tests\Core\Route\RouterRoleTest::testRoleAccess with data set #0 ('role_test_1', array(Drupal\user\Plugin\Core\Entity\User, Drupal\user\Plugin\Core\Entity\User))
+ Access granted for user with the roles role_test_1 on path: role_test_1
+ Failed asserting that false is true.
+
+ /var/www/d8/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php:163
+ /usr/share/php/PHPUnit/TextUI/Command.php:176
+ /usr/share/php/PHPUnit/TextUI/Command.php:129
+
+
+
+ Drupal\Tests\Core\Route\RouterRoleTest::testRoleAccess with data set #1 ('role_test_2', array(Drupal\user\Plugin\Core\Entity\User, Drupal\user\Plugin\Core\Entity\User))
+ Access granted for user with the roles role_test_2 on path: role_test_2
+ Failed asserting that false is true.
+
+ /var/www/d8/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php:163
+ /usr/share/php/PHPUnit/TextUI/Command.php:176
+ /usr/share/php/PHPUnit/TextUI/Command.php:129
+
+
+
+ Drupal\Tests\Core\Route\RouterRoleTest::testRoleAccess with data set #2 ('role_test_3', array(Drupal\user\Plugin\Core\Entity\User))
+ Access granted for user with the roles role_test_1, role_test_2 on path: role_test_3
+ Failed asserting that false is true.
+
+ /var/www/d8/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php:163
+ /usr/share/php/PHPUnit/TextUI/Command.php:176
+ /usr/share/php/PHPUnit/TextUI/Command.php:129
+
+
+
+