Change-Id: Ieadadd5300b10a3de856ffd4128bd9fbb09c417e
* Test human readable timestamp format.
*/
function testHumanOutput() {
+ global $wgLang;
+
+ $wgLang = Language::factory( 'es' );
+ $timestamp = new MWTimestamp( time() - 3600 );
+ $this->assertEquals( "hace una hora", $timestamp->getHumanTimestamp()->toString() );
+
+ $wgLang = Language::factory( 'en' );
$timestamp = new MWTimestamp( time() - 3600 );
$this->assertEquals( "1 hour ago", $timestamp->getHumanTimestamp()->toString() );
}