setName() public method

public setName ( mixed $name )
$name mixed
Example #1
0
 public function testArgument()
 {
     $argument = new Argument('test', new Literal('test', new Location(1, 1)), new Location(1, 1));
     $this->assertNotNull($argument->getValue());
     $this->assertEquals($argument->getName(), 'test');
     $argument->setName('test2');
     $argument->setValue('some value');
     $this->assertEquals($argument->getName(), 'test2');
     $this->assertEquals($argument->getValue(), 'some value');
 }