/**
  * testRemoveFunctionSetsParentPackageToNull
  *
  * @return void
  */
 public function testRemoveFunctionSetsParentPackageToNull()
 {
     $namespace = new ASTNamespace('nspace');
     $function = new ASTFunction('func', 0);
     $namespace->addFunction($function);
     $namespace->removeFunction($function);
     $this->assertNull($function->getNamespace());
 }