public function AttributeBagTest::attributesProvider

File

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

Class

AttributeBagTest
Tests AttributeBag

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(
      'category',
      array(
        'fishing' => array(
          'first' => 'cod',
          'second' => 'sole',
        ),
      ),
      true,
    ),
    array(
      'user2.login',
      null,
      false,
    ),
    array(
      'never',
      null,
      false,
    ),
    array(
      'bye',
      null,
      false,
    ),
    array(
      'bye/for/now',
      null,
      false,
    ),
  );
}