public static function TimerUnitTest::getInfo

This method exists to support the simpletest UI runner.

It should eventually be replaced with something native to phpunit.

Also, this method is empty because you can't have an abstract static method. Sub-classes should always override it.

Return value

array An array describing the test like so: array( 'name' => 'Something Test', 'description' => 'Tests Something', 'group' => 'Something', )

Overrides UnitTestCase::getInfo

File

drupal/core/tests/Drupal/Tests/Component/Utility/TimerUnitTest.php, line 20
Contains \Drupal\Tests\Component\Utility\TimerUnitTest.

Class

TimerUnitTest
Tests the Timer system.

Namespace

Drupal\Tests\Component\Utility

Code

public static function getInfo() {
  return array(
    'name' => 'Timer test',
    'description' => 'Test that Timer::read() works both when a timer is running and when a timer is stopped.',
    'group' => 'Bootstrap',
  );
}