mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
test to prove ticket #291
Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
parent
1c8a2f232b
commit
ea482442ff
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::singularize('faxes'), 'fax');
|
||||
$this->assertEqual(Inflector::singularize('waxes'), 'wax');
|
||||
$this->assertEqual(Inflector::singularize('waves'), 'wave');
|
||||
$this->assertEqual(Inflector::singularize('bureaus'), 'bureau');
|
||||
$this->assertEqual(Inflector::singularize(''), '');
|
||||
}
|
||||
/**
|
||||
|
@ -153,6 +154,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::pluralize('glove'), 'gloves');
|
||||
$this->assertEqual(Inflector::pluralize('crisis'), 'crises');
|
||||
$this->assertEqual(Inflector::pluralize('wave'), 'waves');
|
||||
$this->assertEqual(Inflector::pluralize('bureau'), 'bureaus');
|
||||
$this->assertEqual(Inflector::pluralize(''), '');
|
||||
}
|
||||
/**
|
||||
|
@ -228,6 +230,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::classify('artists_genres'), 'ArtistsGenre');
|
||||
$this->assertEqual(Inflector::classify('file_systems'), 'FileSystem');
|
||||
$this->assertEqual(Inflector::classify('news'), 'News');
|
||||
$this->assertEqual(Inflector::classify('bureaus'), 'Bureau');
|
||||
}
|
||||
/**
|
||||
* testTableNaming method
|
||||
|
@ -239,6 +242,7 @@ class InflectorTest extends CakeTestCase {
|
|||
$this->assertEqual(Inflector::tableize('ArtistsGenre'), 'artists_genres');
|
||||
$this->assertEqual(Inflector::tableize('FileSystem'), 'file_systems');
|
||||
$this->assertEqual(Inflector::tableize('News'), 'news');
|
||||
$this->assertEqual(Inflector::tableize('Bureau'), 'bureaus');
|
||||
}
|
||||
/**
|
||||
* testHumanization method
|
||||
|
|
Loading…
Reference in a new issue