public function testDateFormatNoTime()
{
$date = DateTime::createFromFormat('Ymd_His', '20170101_101112');
- $this->assertRegExp('/1\. Januar 2017/', format_date($date, false,true));
+ $this->assertRegExp('/1\. Januar 2017/', format_date($date, false, true));
}
/**
}
/**
- * Test autoLocale with multiples value, the second one is valid
+ * Test autoLocale with multiples value, the second one is available
*/
- public function testAutoLocaleMultipleSecondValid()
+ public function testAutoLocaleMultipleSecondAvailable()
{
$current = setlocale(LC_ALL, 0);
- $header = 'pt_BR,fr-fr';
+ $header = 'mag_IN,fr-fr';
autoLocale($header);
$this->assertEquals('fr_FR.utf8', setlocale(LC_ALL, 0));
}
/**
- * Test autoLocale with an invalid value: defaults to en_US.
+ * Test autoLocale with an unavailable value: defaults to en_US.
*/
- public function testAutoLocaleInvalid()
+ public function testAutoLocaleUnavailable()
{
$current = setlocale(LC_ALL, 0);
- autoLocale('pt_BR');
+ autoLocale('mag_IN');
$this->assertEquals('en_US.utf8', setlocale(LC_ALL, 0));
setlocale(LC_ALL, $current);