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\hPM#iu', $time->Nice()); } public function testShort() { $time = DBTime::create_field('Time', '17:15:55'); $this->assertMatchesRegularExpression('#5:15\hPM#iu', $time->Short()); } }