You are here

public function TestBaseTest::providerRandomItems in SimpleTest 8.3

Provides data for testRandomString() and others.

Return value

array

  • The number of items (characters, object properties) we expect any of the random functions to give us.

File

tests/src/Unit/TestBaseTest.php, line 95

Class

TestBaseTest
@requires extension curl @coversDefaultClass \Drupal\simpletest\TestBase @group simpletest @group TestBase

Namespace

Drupal\Tests\simpletest\Unit

Code

public function providerRandomItems() {
  return [
    [
      NULL,
    ],
    [
      0,
    ],
    [
      1,
    ],
    [
      2,
    ],
    [
      3,
    ],
    [
      4,
    ],
    [
      7,
    ],
  ];
}