diff options
author | wei <> | 2006-07-05 07:45:41 +0000 |
---|---|---|
committer | wei <> | 2006-07-05 07:45:41 +0000 |
commit | e7e7c7403b1ffffdf1a7a4bb9e1de752fe1c72db (patch) | |
tree | 08ef806c2e72a6d14367797c765d3fb8dfa0a1d6 /tests/UnitTests/framework/I18N/testChoiceFormat.php | |
parent | dfa5aa5fbf11f89ce483c58016465ddc3921f082 (diff) |
clean up tests
Diffstat (limited to 'tests/UnitTests/framework/I18N/testChoiceFormat.php')
-rw-r--r-- | tests/UnitTests/framework/I18N/testChoiceFormat.php | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tests/UnitTests/framework/I18N/testChoiceFormat.php b/tests/UnitTests/framework/I18N/testChoiceFormat.php deleted file mode 100644 index 8cc3f1d3..00000000 --- a/tests/UnitTests/framework/I18N/testChoiceFormat.php +++ /dev/null @@ -1,34 +0,0 @@ -<?php
-Prado::using('System.I18N.core.ChoiceFormat');
-
-class testChoiceFormat extends UnitTestCase
-{
- function testChoiceFormat()
- {
- $this->UnitTestCase();
- }
-
- function testChoices()
- {
- $choice = new ChoiceFormat();
- $string = '[0] are no files |[1] is one file |(1,Inf] are {number} files';
-
- $want = 'are no files';
- $this->assertEqual($want, $choice->format($string, 0));
-
- $want = 'is one file';
- $this->assertEqual($want, $choice->format($string, 1));
-
- $want = 'are {number} files';
- $this->assertEqual($want, $choice->format($string, 5));
-
- $this->assertFalse($choice->format($string, -1));
-
- $string = '{1,2} one two |{3,4} three four |[2,5] two to five inclusive';
- $this->assertEqual($choice->format($string,1),'one two');
- $this->assertEqual($choice->format($string,2.1),'two to five inclusive');
- $this->assertEqual($choice->format($string,3),'three four');
- }
-}
-
-?>
\ No newline at end of file |