more clarity for example test setup
Fixed example code not working on PHP 5.3 and some other stuff.

Signed-off-by: crynobone <crynobone@gmail.com>