2009-04-30 09:37:09 +02:00
|
|
|
<?php
|
|
|
|
/**
|
2012-04-12 08:02:46 +02:00
|
|
|
* @package framework
|
2009-04-30 09:37:09 +02:00
|
|
|
* @subpackage tests
|
|
|
|
*/
|
|
|
|
class DBLocaleTest extends SapphireTest {
|
|
|
|
function testNice() {
|
2012-03-27 06:57:42 +02:00
|
|
|
$l = DBField::create_field('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-30 01:44:46 +01:00
|
|
|
|
|
|
|
function testNiceNative() {
|
2012-03-27 06:57:42 +02:00
|
|
|
$l = DBField::create_field('DBLocale', 'de_DE');
|
2009-11-30 01:44:46 +01:00
|
|
|
$this->assertEquals($l->Nice(true), 'Deutsch');
|
|
|
|
}
|
|
|
|
|
|
|
|
function testNativeName() {
|
2012-03-27 06:57:42 +02:00
|
|
|
$l = DBField::create_field('DBLocale', 'de_DE');
|
2009-11-30 01:44:46 +01:00
|
|
|
$this->assertEquals($l->getNativeName(), 'Deutsch');
|
|
|
|
}
|
2009-04-30 09:37:09 +02:00
|
|
|
}
|