Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Plural of breif is breifs not breives

  • Loading branch information...
commit 7f44cc01b54ff11842b65613dd06466cb816f956 1 parent 4c92cdc
@robmcvey robmcvey authored
View
3  lib/Cake/Test/Case/Utility/InflectorTest.php
@@ -119,7 +119,7 @@ public function testInflectingSingulars() {
$this->assertEquals(Inflector::singularize('feet'), 'foot');
$this->assertEquals(Inflector::singularize('objectives'), 'objective');
$this->assertEquals(Inflector::singularize('archives'), 'archive');
-
+ $this->assertEquals(Inflector::singularize('briefs'), 'brief');
$this->assertEquals(Inflector::singularize(''), '');
}
@@ -180,6 +180,7 @@ public function testInflectingPlurals() {
$this->assertEquals(Inflector::pluralize('goose'), 'geese');
$this->assertEquals(Inflector::pluralize('foot'), 'feet');
$this->assertEquals(Inflector::pluralize('objective'), 'objectives');
+ $this->assertEquals(Inflector::pluralize('brief'), 'briefs');
$this->assertEquals(Inflector::pluralize(''), '');
}
View
1  lib/Cake/Utility/Inflector.php
@@ -61,6 +61,7 @@ class Inflector {
'irregular' => array(
'atlas' => 'atlases',
'beef' => 'beefs',
+ 'brief' => 'briefs',
'brother' => 'brothers',
'cafe' => 'cafes',
'child' => 'children',
Please sign in to comment.
Something went wrong with that request. Please try again.