Rewrite a test to avoid a fatal on php 5.3
Merge pull request #15 from jubianchi/master

Fix failing tests on PHP 5.3