Fix broken php-tests

See #1312