You are here

public function PhpUnitTestRunnerTest::providerTestSummarizeResults in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()

File

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

Class

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

Namespace

Drupal\Tests\Core\Test

Code

public 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',
    ],
  ];
}