Merge pull request #8 from chives/dev

Removed usage of deprecated method
Install phpunit as a dependency
Added clear() method