Ensure that phpunit only runs when php files have changed

this change is only effective in the pre-commit hook.

Resolves #4