You are here

public function AttributeBagTest::attributesProvider in Zircon Profile 8

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

File

vendor/symfony/http-foundation/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,
    ),
  );
}