Fix tests for PHP 5.6
Merge pull request #370 from mbeccati/develop

Fix tests for PHP 5.6