Example #1
0
 public function TestInvalidISO8601Dates()
 {
     // "not a date" should fail to parse as a date.
     \Enhance\Assert::isNull(GetDeltaMillisecondsFromISO6801Dates("not a date", "1997-01-02"));
     \Enhance\Assert::isNull(GetDeltaMillisecondsFromISO6801Dates("1997-01-02", "not a date"));
     // Try a valid difference, to see that "not a date" is the reason we failed
     // above.
     \Enhance\Assert::isNotNull(GetDeltaMillisecondsFromISO6801Dates("1997-01-02", "1997-01-02"));
 }
Example #2
0
 public function testGetNonExistingMultiLevelKeyReturnsNull()
 {
     $actual = $this->object->get('my.multi.level.non.existing.key');
     Assert::isNull($actual);
 }