function PhpUnitTestRunnerTest::providerTestSummarizeResults

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()
  2. 8.9.x core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()
  3. 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()

File

core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php, line 102

Class

PhpUnitTestRunnerTest
@coversDefaultClass \Drupal\Core\Test\PhpUnitTestRunner @group Test

Namespace

Drupal\Tests\Core\Test

Code

public static function providerTestSummarizeResults() {
    return [
        [
            [
                [
                    'test_class' => static::class,
                    'status' => 'pass',
                ],
            ],
            '#pass',
        ],
        [
            [
                [
                    'test_class' => static::class,
                    'status' => 'fail',
                ],
            ],
            '#fail',
        ],
        [
            [
                [
                    'test_class' => static::class,
                    'status' => 'exception',
                ],
            ],
            '#exception',
        ],
        [
            [
                [
                    'test_class' => static::class,
                    'status' => 'debug',
                ],
            ],
            '#debug',
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.