/** * @covers \DCarbone\PHPClassBuilder\Template\Structure\VariableTemplate::setName * @covers \DCarbone\PHPClassBuilder\Template\Structure\VariableTemplate::getName * @covers \DCarbone\PHPClassBuilder\Utilities\NameUtils::isValidVariableName * @depends testCanConstructWithoutArguments * @param VariableTemplate $variable */ public function testCanSetNamePostConstruct(VariableTemplate $variable) { $variable->setName('vartest'); $this->assertEquals('vartest', $variable->getName()); }