2009-04-30 07:37:09 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class DBLocaleTest extends SapphireTest {
|
|
|
|
function testNice() {
|
|
|
|
$l = DBField::create('DBLocale', 'de_DE');
|
2009-04-30 08:39:49 +00:00
|
|
|
$this->assertEquals($l->Nice(), 'German');
|
2009-04-30 07:37:09 +00:00
|
|
|
}
|
2009-11-30 00:44:46 +00:00
|
|
|
|
|
|
|
function testNiceNative() {
|
|
|
|
$l = DBField::create('DBLocale', 'de_DE');
|
|
|
|
$this->assertEquals($l->Nice(true), 'Deutsch');
|
|
|
|
}
|
|
|
|
|
|
|
|
function testNativeName() {
|
|
|
|
$l = DBField::create('DBLocale', 'de_DE');
|
|
|
|
$this->assertEquals($l->getNativeName(), 'Deutsch');
|
|
|
|
}
|
2009-04-30 07:37:09 +00:00
|
|
|
}
|
|
|
|
?>
|