mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
065b93c29a
commit
87bb47b5af
1 changed files with 7 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue