summaryrefslogtreecommitdiff
path: root/tests/simple_unit
diff options
context:
space:
mode:
Diffstat (limited to 'tests/simple_unit')
-rw-r--r--tests/simple_unit/I18N/CultureInfoTest.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/simple_unit/I18N/CultureInfoTest.php b/tests/simple_unit/I18N/CultureInfoTest.php
new file mode 100644
index 00000000..840d8f17
--- /dev/null
+++ b/tests/simple_unit/I18N/CultureInfoTest.php
@@ -0,0 +1,13 @@
+<?php
+
+Prado::using('System.I18N.core.*');
+class CultureInfoTest extends UnitTestCase
+{
+ function test_missing_english_names_returns_culture_code()
+ {
+ $culture = new CultureInfo('iw');
+ $this->assertEqual($culture->getEnglishName(), 'iw');
+ }
+}
+
+?> \ No newline at end of file