+ $time = 1;
+
+ $datestr = transform::datetime($time);
+
+ // Assert it is a string.
+ $this->assertInternalType('string', $datestr);
+
+ // To prevent failures on MAC where we are returned with a lower-case 'am' we want to convert this to 'AM'.
+ $datestr = str_replace('am', 'AM', $datestr);
+
+ // Assert the formatted date is correct.
+ $dateobj = new DateTime();
+ $dateobj->setTimestamp($time);
+ $this->assertEquals($dateobj->format('l, j F Y, g:i A'), $datestr);