Skip to content

Commit

Permalink
Fix pluralization of "chef".
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 25, 2016
1 parent c263b38 commit 11f2e58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Utility/Inflector.php
Expand Up @@ -39,6 +39,7 @@ class Inflector
'/(x|ch|ss|sh)$/i' => '\1es',
'/([^aeiouy]|qu)y$/i' => '\1ies',
'/(hive)$/i' => '\1s',
'/(chef)$/i' => '\1s',
'/(?:([^f])fe|([lre])f)$/i' => '\1\2ves',
'/sis$/i' => 'ses',
'/([ti])um$/i' => '\1a',
Expand Down
1 change: 1 addition & 0 deletions tests/TestCase/Utility/InflectorTest.php
Expand Up @@ -277,6 +277,7 @@ public function testInflectingPlurals()
$this->assertEquals('Addresses', Inflector::pluralize('Address'));
$this->assertEquals('sieves', Inflector::pluralize('sieve'));
$this->assertEquals('blue_octopuses', Inflector::pluralize('blue_octopus'));
$this->assertEquals('chefs', Inflector::pluralize('chef'));
$this->assertEquals('', Inflector::pluralize(''));
}

Expand Down

0 comments on commit 11f2e58

Please sign in to comment.