/** * @covers ConfigVariable::getComment * @todo Implement testGetComment(). */ public function testGetComment() { $variable_name = 'some_variable'; $variable_value = 'some_value'; $variable_comment = 'some_comment'; $config_variable = new ConfigVariable($variable_name, $variable_value, $variable_comment); $this->assertEquals($config_variable->getComment(), $variable_comment); }
private function addSomeVariablesToSection(\ConfigVariable $variable, $amount = 0, $mutable = false) { for ($i = 0; $i < $amount; $i++) { if ($mutable) { $name = $variable->getVariable() . '_' . $i; $variable = new \ConfigVariable($name, $variable->getValue(), $variable->getComment()); } $this->object->addVariable($variable); } }