IntervalTest

Extends \PHPUnit_Framework_TestCase

package

Default

Methods

setUp

setUp() 

test__ToStringUsesGetIntervalsString

test__ToStringUsesGetIntervalsString() 

Common ISO style seen on many web services, including Druid.

testCanUseDruidDateTimeStrings() 

Take ISO, replace time zone offsets with 'Z'. We always work in Zulu/UTC/GMT time here.

Y-m-d\TH:i:s\Z

eBay and Amazon also use this style.

Actual ISO 8601 standard spec includes time zone offsets.

testCanUseISO8601DateTimeStrings() 

Y-m-d\TH:i:sO

Standard date time strings will default to local time zone.

testCanUseStandardDateTimeStrings() 

We want UTC time only. At least the output should not be modified.

testGetIntervalsString

testGetIntervalsString() 

testGetIntervalsStringWithInvalidData

testGetIntervalsStringWithInvalidData() 

testGetIntervalsStringWithMissingData

testGetIntervalsStringWithMissingData()