mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
aa18a53d25
commit
7b5122adb1
2 changed files with 3 additions and 1 deletions
|
@ -117,6 +117,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEquals(Inflector::singularize('teeth'), 'tooth');
|
||||
$this->assertEquals(Inflector::singularize('geese'), 'goose');
|
||||
$this->assertEquals(Inflector::singularize('feet'), 'foot');
|
||||
$this->assertEquals(Inflector::singularize('objectives'), 'objective');
|
||||
|
||||
$this->assertEquals(Inflector::singularize(''), '');
|
||||
}
|
||||
|
@ -177,6 +178,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEquals(Inflector::pluralize('tooth'), 'teeth');
|
||||
$this->assertEquals(Inflector::pluralize('goose'), 'geese');
|
||||
$this->assertEquals(Inflector::pluralize('foot'), 'feet');
|
||||
$this->assertEquals(Inflector::pluralize('objective'), 'objectives');
|
||||
$this->assertEquals(Inflector::pluralize(''), '');
|
||||
}
|
||||
|
||||
|
|
|
@ -125,9 +125,9 @@ class Inflector {
|
|||
'/(m)ovies$/i' => '\1\2ovie',
|
||||
'/(s)eries$/i' => '\1\2eries',
|
||||
'/([^aeiouy]|qu)ies$/i' => '\1y',
|
||||
'/(tive)s$/i' => '\1',
|
||||
'/([lre])ves$/i' => '\1f',
|
||||
'/([^fo])ves$/i' => '\1fe',
|
||||
'/(tive)s$/i' => '\1',
|
||||
'/(hive)s$/i' => '\1',
|
||||
'/(drive)s$/i' => '\1',
|
||||
'/(^analy)ses$/i' => '\1sis',
|
||||
|
|
Loading…
Reference in a new issue