fix test for PHP 5.4+
Merge pull request #26 from cotal/master

fix test for PHP 5.4+