diff --git a/lib/Cake/Test/Case/Utility/InflectorTest.php b/lib/Cake/Test/Case/Utility/InflectorTest.php index 638ba54dc..9df596e78 100644 --- a/lib/Cake/Test/Case/Utility/InflectorTest.php +++ b/lib/Cake/Test/Case/Utility/InflectorTest.php @@ -128,7 +128,7 @@ class InflectorTest extends CakeTestCase { $this->assertEquals(Inflector::singularize('stimuli'), 'stimulus'); $this->assertEquals(Inflector::singularize('syllabi'), 'syllabus'); $this->assertEquals(Inflector::singularize('termini'), 'terminus'); - $this->assertEquals(Inflector::singularize('viri'), 'virus'); + $this->assertEquals(Inflector::singularize('viruses'), 'virus'); $this->assertEquals(Inflector::singularize('people'), 'person'); $this->assertEquals(Inflector::singularize('gloves'), 'glove'); $this->assertEquals(Inflector::singularize('doves'), 'dove'); @@ -246,7 +246,7 @@ class InflectorTest extends CakeTestCase { $this->assertEquals(Inflector::pluralize('stimulus'), 'stimuli'); $this->assertEquals(Inflector::pluralize('syllabus'), 'syllabi'); $this->assertEquals(Inflector::pluralize('terminus'), 'termini'); - $this->assertEquals(Inflector::pluralize('virus'), 'viri'); + $this->assertEquals(Inflector::pluralize('virus'), 'viruses'); $this->assertEquals(Inflector::pluralize('person'), 'people'); $this->assertEquals(Inflector::pluralize('people'), 'people'); $this->assertEquals(Inflector::pluralize('glove'), 'gloves'); diff --git a/lib/Cake/Utility/Inflector.php b/lib/Cake/Utility/Inflector.php index 6644661c3..40b9de281 100644 --- a/lib/Cake/Utility/Inflector.php +++ b/lib/Cake/Utility/Inflector.php @@ -47,7 +47,7 @@ class Inflector { '/(? '\1en', '/(c)hild$/i' => '\1hildren', '/(buffal|tomat)o$/i' => '\1\2oes', - '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin|vir)us$/i' => '\1i', + '/(alumn|bacill|cact|foc|fung|nucle|radi|stimul|syllab|termin)us$/i' => '\1i', '/us$/i' => 'uses', '/(alias)$/i' => '\1es', '/(ax|cris|test)is$/i' => '\1es',