File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 96
96
'sheep ' ,
97
97
'species ' ,
98
98
'moose ' ,
99
+ 'chassis ' ,
100
+ 'traffic ' ,
99
101
),
100
102
101
103
/*
185
187
186
188
),
187
189
188
- );
190
+ );
Original file line number Diff line number Diff line change 8
8
|--------------------------------------------------------------------------
9
9
|
10
10
| This array contains the singular and plural forms of words. It's used by
11
- | the "singular" and "plural" methods on the Str class to convert a given
11
+ | the "singular" and "plural" methods in the Str class to convert a given
12
12
| word from singular to plural and vice versa.
13
13
|
14
14
| Note that the regular expressions are only for inflecting English words.
95
95
'series ' ,
96
96
'sheep ' ,
97
97
'species ' ,
98
+ 'moose ' ,
99
+ 'chassis ' ,
100
+ 'traffic ' ,
98
101
),
99
102
100
103
/*
184
187
185
188
),
186
189
187
- );
190
+ );
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ public function testStringsCanBeSingularOrPlural()
96
96
$ this ->assertEquals ('Users ' , Str::plural ('User ' ));
97
97
$ this ->assertEquals ('user ' , Str::plural ('user ' , 1 ));
98
98
$ this ->assertEquals ('users ' , Str::plural ('user ' , 2 ));
99
+ $ this ->assertEquals ('chassis ' , Str::plural ('chassis ' , 2 ));
100
+ $ this ->assertEquals ('traffic ' , Str::plural ('traffic ' , 2 ));
99
101
}
100
102
101
103
/**
@@ -130,4 +132,4 @@ public function testRandomStringsCanBeGenerated()
130
132
$ this ->assertEquals (40 , strlen (Str::random (40 )));
131
133
}
132
134
133
- }
135
+ }
You can’t perform that action at this time.
0 commit comments