Added unit test for bug when calling getGlobals() before addGlobal() on Twig_Environment.
Added unit test for bug when calling getGlobals() before addGlobal() on Twig_Environment.

markstory/Twig,gencer/Twig,nicolas-grekas/Twig,moufmouf/Twig,jamessingizi/Twig,Rvanlaak/Twig,twigphp/Twig,framewr/Twig,loi-chuanoi/Twig,znerol/Twig,bocharsky-bw/Twig,framewr/Twig,Tobion/Twig,nicolas-grekas/Twig,derickr/Twig,gencer/Twig,fsw/Twig,huang53798584/Twig,markstory/Twig,bocharsky-bw/Twig,hhamon/Twig,iKwinto/Twig,bocharsky-bw/Twig,iKwinto/Twig,fsw/Twig,craue/Twig,apishka/templater,fsw/Twig,huang53798584/Twig,hason/Twig,nicolas-grekas/Twig,Rvanlaak/Twig,dkarvounaris/Twig,znerol/Twig,phansys/Twig,twigphp/Twig,gamernetwork/Twig,Tobion/Twig,gamernetwork/Twig,robregonm/Twig,jamessingizi/Twig,jamessingizi/Twig,phansys/Twig,dkarvounaris/Twig,hason/Twig,peterkokot/Twig,dkarvounaris/Twig,robregonm/Twig,hhamon/Twig,derickr/Twig,hhamon/Twig,gamernetwork/Twig,Tobion/Twig,moltin/Twig,Rvanlaak/Twig,peterkokot/Twig,nicolas-grekas/Twig,znerol/Twig,moltin/Twig,iKwinto/Twig,apishka/templater,nicolas-grekas/Twig,moufmouf/Twig,huang53798584/Twig,twigphp/Twig,hason/Twig,moufmouf/Twig,derickr/Twig,moltin/Twig,robregonm/Twig,craue/Twig,framewr/Twig