Fixing tests for bugfixed PHP versions

Travis-CI tests fix (Final part of #292)