Nelmio\Alice\ParameterBagTest::testIsCountable PHP Method

testIsCountable() public method

public testIsCountable ( )
    public function testIsCountable()
    {
        $bag = new ParameterBag();
        $this->assertEquals(0, count($bag));
        $bag = $bag->with(new Parameter('foo', 'bar'))->with(new Parameter('ping', 'pong'));
        $this->assertEquals(2, count($bag));
    }