fix tests for PHP 5.3
Merge pull request #125 from willdurand/fix-tests

fix tests for PHP 5.3