Refactored PHP bindings tests