You are here

public function CryptTest::providerTestHmacBase64Invalid in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 125
Contains \Drupal\Tests\Component\Utility\CryptTest.

Class

CryptTest
Tests random byte generation.

Namespace

Drupal\Tests\Component\Utility

Code

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