mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
a1ae31e554
commit
607200fa7b
2 changed files with 11 additions and 1 deletions
|
@ -241,6 +241,7 @@ class InflectorTest extends CakeTestCase {
|
||||||
$this->assertEquals(Inflector::pluralize('curve'), 'curves');
|
$this->assertEquals(Inflector::pluralize('curve'), 'curves');
|
||||||
$this->assertEquals(Inflector::pluralize('body_curve'), 'body_curves');
|
$this->assertEquals(Inflector::pluralize('body_curve'), 'body_curves');
|
||||||
$this->assertEquals(Inflector::pluralize('metadata'), 'metadata');
|
$this->assertEquals(Inflector::pluralize('metadata'), 'metadata');
|
||||||
|
$this->assertEquals(Inflector::pluralize('stadia'), 'stadia');
|
||||||
$this->assertEquals(Inflector::pluralize(''), '');
|
$this->assertEquals(Inflector::pluralize(''), '');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,16 @@ class Inflector {
|
||||||
'/$/' => 's',
|
'/$/' => 's',
|
||||||
),
|
),
|
||||||
'uninflected' => array(
|
'uninflected' => array(
|
||||||
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', 'people', 'feedback'
|
'.*[nrlm]ese',
|
||||||
|
'.*deer',
|
||||||
|
'.*fish',
|
||||||
|
'.*measles',
|
||||||
|
'.*ois',
|
||||||
|
'.*pox',
|
||||||
|
'.*sheep',
|
||||||
|
'people',
|
||||||
|
'feedback',
|
||||||
|
'stadia'
|
||||||
),
|
),
|
||||||
'irregular' => array(
|
'irregular' => array(
|
||||||
'atlas' => 'atlases',
|
'atlas' => 'atlases',
|
||||||
|
|
Loading…
Reference in a new issue