You are here

public function CryptTest::providerTestHmacBase64Invalid in Drupal 8

Same name and namespace in other branches
  1. 9 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 116

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,
    ],
  ];
}