Refactored PHP bindings tests

As discussed in #36, here are the PHP tests refactored:

- `read|readHEX()` and `write|writeHEX()` tests factorized
- data providers
- expected exceptions (extracted from `writeHEX()` test)