assertEquals( $expected, $time->getValue(), "Date parsed from {$input} should be {$expected}" ); } public function testNice() { $time = DBTime::create_field('Time', '17:15:55'); $this->assertEquals('5:15:55 PM', $time->Nice()); } public function testShort() { $time = DBTime::create_field('Time', '17:15:55'); $this->assertEquals('5:15 PM', $time->Short()); } }