File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Filter options
src/Symfony/Component/Inflector/Tests Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Original file line number Diff line number Diff line change @@ -160,15 +160,15 @@ public function singularizeProvider()
160
160
/**
161
161
* @dataProvider singularizeProvider
162
162
*/
163
- public function testSingularize ($ plural , $ singular )
163
+ public function testSingularize ($ plural , $ expectedSingular )
164
164
{
165
- $ single = Inflector::singularize ($ plural );
166
- if (\is_string ($ singular ) && \is_array ($ single )) {
167
- $ this ->fail ("--- Expected \n`string`: " .$ singular ."\n+++ Actual \n`array`: " .implode (', ' , $ single ));
168
- } elseif (\is_array ($ singular ) && \is_string ($ single )) {
169
- $ this ->fail ("--- Expected \n`array`: " .implode (', ' , $ singular )."\n+++ Actual \n`string`: " .$ single );
165
+ $ singular = Inflector::singularize ($ plural );
166
+ if (\is_string ($ expectedSingular ) && \is_array ($ singular )) {
167
+ $ this ->fail ("--- Expected \n`string`: " .$ expectedSingular ."\n+++ Actual \n`array`: " .implode (', ' , $ singular ));
168
+ } elseif (\is_array ($ expectedSingular ) && \is_string ($ singular )) {
169
+ $ this ->fail ("--- Expected \n`array`: " .implode (', ' , $ expectedSingular )."\n+++ Actual \n`string`: " .$ singular );
170
170
}
171
171
172
- $ this ->assertEquals ($ singular , $ single );
172
+ $ this ->assertEquals ($ expectedSingular , $ singular );
173
173
}
174
174
}
You can’t perform that action at this time.
0 commit comments