function ProtectedPrivatesTest::addBadDataProvider

Same name in this branch
  1. 4.0.x modules/phpunit_example/tests/src/Unit/ProtectedPrivatesTest.php \Drupal\Tests\phpunit_example\Unit\ProtectedPrivatesTest::addBadDataProvider()
Same name in other branches
  1. 3.x modules/phpunit_example/tests/src/Unit/ProtectedPrivatesTest.php \Drupal\Tests\phpunit_example\Unit\ProtectedPrivatesTest::addBadDataProvider()
  2. 8.x-1.x phpunit_example/tests/src/Unit/ProtectedPrivatesTest.php \Drupal\Tests\phpunit_example\Unit\ProtectedPrivatesTest::addBadDataProvider()

Bad data provider.

File

modules/testing_example/tests/src/Unit/ProtectedPrivatesTest.php, line 89

Class

ProtectedPrivatesTest
ProtectedPrivates unit testing of restricted methods.

Namespace

Drupal\Tests\test_example\Unit

Code

public static function addBadDataProvider() {
    return [
        [
            'string',
            [],
        ],
    ];
}