Add phpunit configuration

This PR includes basic config for phpunit and the majority of a test for AdapterChain just to get the ball rolling. I will start adding further tests and refactorings in future PRs