2009-04-30 09:37:09 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package sapphire
|
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class DBLocaleTest extends SapphireTest {
|
|
|
|
function testNice() {
|
|
|
|
$l = DBField::create('DBLocale', 'de_DE');
|
2009-04-30 10:39:49 +02:00
|
|
|
$this->assertEquals($l->Nice(), 'German');
|
2009-04-30 09:37:09 +02:00
|
|
|
}
|
2009-11-27 02:48:11 +01: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 09:37:09 +02:00
|
|
|
}
|
|
|
|
?>
|