function CryptTest::providerTestHmacBase64Invalid

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64Invalid()
  2. 10 core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64Invalid()
  3. 11.x core/tests/Drupal/Tests/Component/Utility/CryptTest.php \Drupal\Tests\Component\Utility\CryptTest::providerTestHmacBase64Invalid()

Provides data for self::testHmacBase64().

Return value

array Test data.

File

core/tests/Drupal/Tests/Component/Utility/CryptTest.php, line 106

Class

CryptTest
Tests random byte generation.

Namespace

Drupal\Tests\Component\Utility

Code

public function providerTestHmacBase64Invalid() {
    return [
        [
            new \stdClass(),
            new \stdClass(),
        ],
        [
            new \stdClass(),
            'string',
        ],
        [
            new \stdClass(),
            1,
        ],
        [
            new \stdClass(),
            0,
        ],
        [
            NULL,
            new \stdClass(),
        ],
        [
            'string',
            new \stdClass(),
        ],
        [
            1,
            new \stdClass(),
        ],
        [
            0,
            new \stdClass(),
        ],
        [
            [],
            [],
        ],
        [
            [],
            NULL,
        ],
        [
            [],
            'string',
        ],
        [
            [],
            1,
        ],
        [
            [],
            0,
        ],
        [
            NULL,
            [],
        ],
        [
            1,
            [],
        ],
        [
            0,
            [],
        ],
        [
            'string',
            [],
        ],
        [
            [],
            NULL,
        ],
        [
            NULL,
            NULL,
        ],
        [
            NULL,
            'string',
        ],
        [
            NULL,
            1,
        ],
        [
            NULL,
            0,
        ],
        [
            1,
            NULL,
        ],
        [
            0,
            NULL,
        ],
        [
            'string',
            NULL,
        ],
    ];
}

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