public function ParameterBagTest::testCount

@covers Symfony\Component\HttpFoundation\ParameterBag::count

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/Tests/ParameterBagTest.php, line 225

Class

ParameterBagTest

Namespace

Symfony\Component\HttpFoundation\Tests

Code

public function testCount() {
  $parameters = array(
    'foo' => 'bar',
    'hello' => 'world',
  );
  $bag = new ParameterBag($parameters);
  $this
    ->assertEquals(count($parameters), count($bag));
}