Skip to content
Permalink
Browse files

test to prove ticket #291

Signed-off-by: Mark Story <mark@mark-story.com>
  • Loading branch information...
ceeram authored and markstory committed Nov 13, 2009
1 parent 1c8a2f2 commit ea482442ffa046117b9e6d49cad2c99ce7d643b6
Showing with 4 additions and 0 deletions.
  1. +4 −0 cake/tests/cases/libs/inflector.test.php
@@ -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(''), '');
}
/**
@@ -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(''), '');
}
/**
@@ -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
@@ -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

0 comments on commit ea48244

Please sign in to comment.
You can’t perform that action at this time.