Add unit test for transition model

This commit is contained in:
Frederic Guillot
2016-02-29 22:40:26 -05:00
parent fafc272085
commit 6ef83d0e05
35 changed files with 298 additions and 114 deletions

View File

@@ -12,6 +12,9 @@ use DateTime;
*/
class DateParser extends Base
{
const DATE_FORMAT = 'm/d/Y';
const DATE_TIME_FORMAT = 'm/d/Y H:i';
/**
* List of time formats
*
@@ -201,7 +204,7 @@ class DateParser extends Base
}
/**
* Get a timetstamp from an ISO date format
* Get a timestamp from an ISO date format
*
* @access public
* @param string $value