PHPUnit, superglobal vars. How to setup test such that $_SERVER and $_GET are properly set?
- by gilad.gruber
Hi All,
I am writing some PHP code to parse incoming URLs. It relies heavily on PHP blobals such as $_SERVER and $_GET. I am thinking of manually setting these up in PHPUnit unit test setUp() function. Is there a better way of doing this?
thanks,
G