Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Addding additional English irregular singularization/pluralization ru…

…le 'niche' => 'niches'.
  • Loading branch information...
commit 199d446ba71609fed641bb4bec74d92afe40b24d 1 parent 7902f68
@jperras jperras authored
View
1  cake/libs/inflector.php
@@ -96,6 +96,7 @@ class Inflector extends Object {
'mongoose' => 'mongooses',
'move' => 'moves',
'mythos' => 'mythoi',
+ 'niche' => 'niches',
'numen' => 'numina',
'occiput' => 'occiputs',
'octopus' => 'octopuses',
View
1  cake/tests/cases/libs/inflector.test.php
@@ -105,6 +105,7 @@ function testInflectingSingulars() {
$this->assertEqual(Inflector::singularize('taxes'), 'tax');
$this->assertEqual(Inflector::singularize('faxes'), 'fax');
$this->assertEqual(Inflector::singularize('waxes'), 'wax');
+ $this->assertEqual(Inflector::singularize('niches'), 'niche');
$this->assertEqual(Inflector::singularize(''), '');
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.