EZP-20419 Fix unit- & integration-test failures on PHP 5.3.3 

This PR fixes issue EZP-20419:

Fix unit- & integration-test failures on PHP 5.3.3

## TODO

- [x] fix FieldType integration tests when running with stubs
- [ ] fix FieldType integration tests when running with Legacy storage
- [ ] fix Legacy storage tests