mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fixing singularization of "curves"
This commit is contained in:
parent
ee1634819a
commit
9f4ad94181
2 changed files with 3 additions and 1 deletions
|
@ -147,7 +147,8 @@ class Inflector {
|
|||
'.*[nrlm]ese', '.*deer', '.*fish', '.*measles', '.*ois', '.*pox', '.*sheep', '.*ss'
|
||||
),
|
||||
'irregular' => array(
|
||||
'waves' => 'wave'
|
||||
'waves' => 'wave',
|
||||
'curves' => 'curve'
|
||||
)
|
||||
);
|
||||
|
||||
|
|
|
@ -115,6 +115,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::singularize('diagnoses'), 'diagnosis');
|
||||
$this->assertEqual(Inflector::singularize('bases'), 'basis');
|
||||
$this->assertEqual(Inflector::singularize('analyses'), 'analysis');
|
||||
$this->assertEqual(Inflector::singularize('curves'), 'curve');
|
||||
|
||||
$this->assertEqual(Inflector::singularize(''), '');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue