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