Skip to content

Commit

Permalink
test to prove ticket #291
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information
ceeram authored and markstory committed Nov 13, 2009
1 parent 1c8a2f2 commit ea48244
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cake/tests/cases/libs/inflector.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ function testInflectingSingulars() {
$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(''), '');
}
/**
Expand Down Expand Up @@ -153,6 +154,7 @@ function testInflectingPlurals() {
$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(''), '');
}
/**
Expand Down Expand Up @@ -228,6 +230,7 @@ function testClassNaming() {
$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
Expand All @@ -239,6 +242,7 @@ function testTableNaming() {
$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
Expand Down

0 comments on commit ea48244

Please sign in to comment.