This is the PHP implementation of Moment.js (http://www.momentjs.com) using phpspec2
P.S. This is a sample project.
For running specs you need to install timecomp php extension which can be found here: https://github.com/hnw/php-timecop
- curl -s https://getcomposer.org/installer | php
- php composer.phar install --dev
After installing composer and it's dependencies you should run from a root folder:
- bin/phpspec run
- bin/phpunit tests
For now it's just return DateInterval object.