Adding Inflector test for Ticket #2061

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4463 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-02-06 23:57:45 +00:00
parent 709e257707
commit 5c2e4821f7

View file

@ -41,8 +41,17 @@ class InflectorTest extends UnitTestCase {
}
function testInflectingStuff() {
$this->assertEqual($this->inflector->pluralize('Bus'), 'Buses', 'Badness!');
$this->assertEqual($this->inflector->pluralize('bus'), 'buses', 'Badness!');
$result = $this->inflector->pluralize('Bus');
$expected = 'Buses';
$this->assertEqual($result, $expected, "Badness! Expected '{$expected}', got '{$result}'");
$result = $this->inflector->pluralize('bus');
$expected = 'buses';
$this->assertEqual($this->inflector->pluralize('bus'), 'buses', "Badness! Expected '{$expected}', got '{$result}'");
$result = $this->inflector->singularize('menus');
$expected = 'menu';
$this->assertEqual($result, $expected, "Badness! Expected '{$expected}', got '{$result}'");
}
function tearDown() {