function ContrivedControllerTest::provideTestHandCount

Same name in other branches
  1. 4.0.x modules/testing_example/tests/src/Unit/Controller/ContrivedControllerTest.php \Drupal\Tests\testing_example\Unit\Controller\ContrivedControllerTest::provideTestHandCount()

Data provider for testHandCount().

File

modules/testing_example/tests/src/Unit/Controller/ContrivedControllerTest.php, line 41

Class

ContrivedControllerTest
The class to test ContrivedController.

Namespace

Drupal\Tests\testing_example\Unit\Controller

Code

public function provideTestHandCount() {
    return [
        [
            'I can count these on one hand.',
            0,
            0,
        ],
        [
            'I can count these on one hand.',
            1,
            0,
        ],
        [
            'I can count these on one hand.',
            0,
            1,
        ],
        [
            'I need two hands to count these.',
            5,
            5,
        ],
        [
            'That\'s just too many numbers to count.',
            5,
            6,
        ],
        [
            'That\'s just too many numbers to count.',
            6,
            5,
        ],
    ];
}