From 87bb47b5af5f49baeac97f61230ed93a78da98ab Mon Sep 17 00:00:00 2001 From: dho Date: Wed, 4 Apr 2007 06:55:09 +0000 Subject: [PATCH] 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 --- cake/tests/cases/libs/inflector.test.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cake/tests/cases/libs/inflector.test.php b/cake/tests/cases/libs/inflector.test.php index 4eca30b0b..66599ed30 100644 --- a/cake/tests/cases/libs/inflector.test.php +++ b/cake/tests/cases/libs/inflector.test.php @@ -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() {