function PhpUnitTestRunnerTest::providerTestSummarizeResults

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()
  2. 10 core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()
  3. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php \Drupal\Tests\Core\Test\PhpUnitTestRunnerTest::providerTestSummarizeResults()
  4. 8.9.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 109

Class

PhpUnitTestRunnerTest
Tests Drupal\Core\Test\PhpUnitTestRunner.

Namespace

Drupal\Tests\Core\Test

Code

public static function providerTestSummarizeResults() : \Generator {
  yield 'pass' => [
    static::class,
    [
      [
        'test_class' => static::class,
        'status' => 'pass',
        'time' => 0.010001,
      ],
    ],
    '#pass',
  ];
  yield 'fail' => [
    static::class,
    [
      [
        'test_class' => static::class,
        'status' => 'fail',
        'time' => 0.010002,
      ],
    ],
    '#fail',
  ];
  yield 'exception' => [
    static::class,
    [
      [
        'test_class' => static::class,
        'status' => 'exception',
        'time' => 0.010003,
      ],
    ],
    '#exception',
  ];
  yield 'debug' => [
    static::class,
    [
      [
        'test_class' => static::class,
        'status' => 'debug',
        'time' => 0.010004,
      ],
    ],
    '#debug',
  ];
}

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