You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Translation/Tests/Formatter/IntlSimpleMessageFormatterTest.php
+13Lines changed: 13 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,5 +39,18 @@ public function getTestStrings()
39
39
yieldarray($apples, 'Foo, there are no apples', array('COUNT' => 0, 'name' => 'Foo'));
40
40
yieldarray($apples, 'Foo, there is one apple', array('COUNT' => 1, 'name' => 'Foo'));
41
41
yieldarray($apples, 'Foo, there are 2 apples', array('COUNT' => 2, 'name' => 'Foo'));
42
+
yieldarray('Hello {name}. There are {COUNT, plural, zero{no apples} other{some apples}} in the basket', 'Hello Foo. There are no apples in the basket', array('COUNT' => 0, 'name' => 'Foo'));
43
+
yieldarray('Hello {name}. There are {COUNT, plural, zero{no apples} other{some apples}} in the basket', 'Hello Foo. There are some apples in the basket', array('COUNT' => 3, 'name' => 'Foo'));
44
+
45
+
// Test select
46
+
$gender = 'I think { GENDER, select,
47
+
male {he}
48
+
female {she}
49
+
other {they}
50
+
} liked this.';
51
+
yieldarray($gender, 'I think he liked this.', array('GENDER' => 'male'));
52
+
yieldarray($gender, 'I think she liked this.', array('GENDER' => 'female'));
53
+
yieldarray($gender, 'I think they liked this.', array());
0 commit comments