You are here

public function ParameterBagTest::testCount in Zircon Profile 8

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

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

File

vendor/symfony/http-foundation/Tests/ParameterBagTest.php, line 246

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