Permalink
Browse files

Fix singularization of 'foes'

Fixes #2424
  • Loading branch information...
1 parent edf37e7 commit e649a0516e59fbfa8c04ae38c91974ebe1c5af0a @markstory markstory committed Jan 6, 2012
Showing with 3 additions and 0 deletions.
  1. +2 −0 lib/Cake/Test/Case/Utility/InflectorTest.php
  2. +1 −0 lib/Cake/Utility/Inflector.php
@@ -108,6 +108,7 @@ public function testInflectingSingulars() {
$this->assertEquals(Inflector::singularize('curves'), 'curve');
$this->assertEquals(Inflector::singularize('cafes'), 'cafe');
$this->assertEquals(Inflector::singularize('roofs'), 'roof');
+ $this->assertEquals(Inflector::singularize('foes'), 'foe');
$this->assertEquals(Inflector::singularize(''), '');
}
@@ -158,6 +159,7 @@ public function testInflectingPlurals() {
$this->assertEquals(Inflector::pluralize('bureau'), 'bureaus');
$this->assertEquals(Inflector::pluralize('cafe'), 'cafes');
$this->assertEquals(Inflector::pluralize('roof'), 'roofs');
+ $this->assertEquals(Inflector::pluralize('foe'), 'foes');
$this->assertEquals(Inflector::pluralize(''), '');
}
@@ -144,6 +144,7 @@ class Inflector {
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
),
'irregular' => array(
+ 'foes' => 'foe',
'waves' => 'wave',
'curves' => 'curve'
)

0 comments on commit e649a05

Please sign in to comment.