Adding PHPUnit framework for unit testing to the project

Adding [PHPUnit framework](https://packagist.org/packages/phpunit/phpunit) for unit testing to the project as mentioned in the wiki. Without PHPUnit, not a lot of testing can be done