/**
  * @expectedException InvalidArgumentException
  */
 public function testAddChild()
 {
     $variable = new PhpVariable('Foo', 'bar');
     $variable->addChild(new PhpVariable('Bar', 'foo'));
 }
 /**
  * @expectedException InvalidArgumentException
  */
 public function testAddChild()
 {
     $constant = new PhpVariable('Foo', 'bar');
     $constant->addChild(new PhpVariable('Bar', 'foo'));
 }