public function testFillParametersFlag() { $builder = new ParameterBuilder(); $builder->addOption('bar', Parameter::TYPE_FLAG); $builder->addOption('test', Parameter::TYPE_FLAG); $parser = $this->getParameterParser(); $parameters = $builder->getParameters(); $this->assertEquals(null, $parameters->get('bar')); $this->assertEquals(false, $parameters->has('bar')); $this->assertEquals(null, $parameters->get('test')); $this->assertEquals(false, $parameters->has('test')); $parser->fillParameters($parameters); $this->assertEquals(true, $parameters->get('bar')); $this->assertEquals(true, $parameters->has('bar')); $this->assertEquals(false, $parameters->get('test')); $this->assertEquals(false, $parameters->has('test')); }