public function testAddChildVariable() { $method = new PhpMethod('foo', array()); $method->addChild(new PhpVariable('bar')); $this->assertCount(1, $method->getChildren()); }