fix unit tests for php 5.3
Merge pull request #2 from Kunstmaan/fix-unit-tests-for-php53

fix unit tests for php 5.3