Add phpdoc to ant build

Signed-off-by: crynobone <crynobone@gmail.com>
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>