Browse Source

Added irregular rule for 'cache'

Jeremy Harris 7 years ago
parent
commit
18ecbbcf3a
2 changed files with 3 additions and 1 deletions
  1. 2 1
      src/Utility/Inflector.php
  2. 1 0
      tests/TestCase/Utility/InflectorTest.php

+ 2 - 1
src/Utility/Inflector.php

@@ -144,7 +144,8 @@ class Inflector
         'goose' => 'geese',
         'foot' => 'feet',
         'foe' => 'foes',
-        'sieve' => 'sieves'
+        'sieve' => 'sieves',
+        'cache' => 'caches',
     ];
 
     /**

+ 1 - 0
tests/TestCase/Utility/InflectorTest.php

@@ -189,6 +189,7 @@ class InflectorTest extends TestCase
             ['blue_octopus', 'blue_octopuses'],
             ['chef', 'chefs'],
             ['', ''],
+            ['cache', 'caches'],
         ];
     }