public function NamespacedAttributeBagTest::attributesProvider

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php, line 152

Class

NamespacedAttributeBagTest
Tests NamespacedAttributeBag

Namespace

Symfony\Component\HttpFoundation\Tests\Session\Attribute

Code

public function attributesProvider() {
  return array(
    array(
      'hello',
      'world',
      true,
    ),
    array(
      'always',
      'be happy',
      true,
    ),
    array(
      'user.login',
      'drak',
      true,
    ),
    array(
      'csrf.token',
      array(
        'a' => '1234',
        'b' => '4321',
      ),
      true,
    ),
    array(
      'csrf.token/a',
      '1234',
      true,
    ),
    array(
      'csrf.token/b',
      '4321',
      true,
    ),
    array(
      'category',
      array(
        'fishing' => array(
          'first' => 'cod',
          'second' => 'sole',
        ),
      ),
      true,
    ),
    array(
      'category/fishing',
      array(
        'first' => 'cod',
        'second' => 'sole',
      ),
      true,
    ),
    array(
      'category/fishing/missing/first',
      null,
      false,
    ),
    array(
      'category/fishing/first',
      'cod',
      true,
    ),
    array(
      'category/fishing/second',
      'sole',
      true,
    ),
    array(
      'category/fishing/missing/second',
      null,
      false,
    ),
    array(
      'user2.login',
      null,
      false,
    ),
    array(
      'never',
      null,
      false,
    ),
    array(
      'bye',
      null,
      false,
    ),
    array(
      'bye/for/now',
      null,
      false,
    ),
  );
}