no recursion for $GLOBALS variable
add doc comment
add mock
allow array input
add docblocks
add function test
coverage only for src
simpler phpunit config file