You are here

public function NamespacedAttributeBagTest::attributesProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php \Symfony\Component\HttpFoundation\Tests\Session\Attribute\NamespacedAttributeBagTest::attributesProvider()

File

vendor/symfony/http-foundation/Tests/Session/Attribute/NamespacedAttributeBagTest.php, line 162

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