Merge pull request #6885 from open-sausages/pulls/4.0/fix-intl-test-consistency

Fix intl ICU inconsistencies
This commit is contained in:
Damian Mooyman 2017-05-09 15:52:22 +12:00 committed by GitHub
commit a136b8ad44
2 changed files with 2 additions and 5 deletions

View File

@ -86,7 +86,8 @@ class DBDatetimeTest extends SapphireTest
public function testTime()
{
$date = DBDatetime::create_field('Datetime', '2001-12-31 22:10:59');
$this->assertEquals('10:10:59 PM', $date->Time());
// casing depends on system ICU library
$this->assertRegexp('#10:10:59 (PM|pm)#', $date->Time());
}
public function testTime24()

View File

@ -156,10 +156,6 @@ class DBMoneyTest extends SapphireTest
// USD in de locale
$USD->setLocale('de_DE');
$this->assertSame($this->clean('53.292,18 $'), $this->clean($USD->Nice()));
// USD in swedish locale is fun
$USD->setLocale('sv');
$this->assertSame($this->clean('53 292,18 US$'), $this->clean($USD->Nice()));
}
public function testGetSymbol()