Adds phpunit config and tests

Change-Id: I5b4bbc3e77e7eaea6b7a40a66ee03546918eaf75
Merge remote-tracking branch 'upstream/master'