Adding test to reproduce ticket #2343

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4748 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
dho 2007-04-04 06:55:09 +00:00
parent 065b93c29a
commit 87bb47b5af

View file

@ -73,6 +73,9 @@ class InflectorTest extends UnitTestCase {
$expected = 'index';
$this->assertEqual($result, $expected);
$result = $this->inflector->singularize('houses');
$expected = 'house';
$this->assertEqual($result, $expected);
}
function testInflectingPlurals() {
@ -107,6 +110,10 @@ class InflectorTest extends UnitTestCase {
$result = $this->inflector->pluralize('index');
$expected = 'indices';
$this->assertEqual($result, $expected);
$result = $this->inflector->pluralize('house');
$expected = 'houses';
$this->assertEqual($result, $expected);
}
function tearDown() {