From d6cafcd63c0cd2e2b2313396666452f211061286 Mon Sep 17 00:00:00 2001 From: Ian Phillips Date: Fri, 19 Jul 2013 16:05:19 -0700 Subject: [PATCH] [PropertyAccess] added moves to pluralMap --- src/Symfony/Component/PropertyAccess/StringUtil.php | 3 +++ src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php | 1 + 2 files changed, 4 insertions(+) diff --git a/src/Symfony/Component/PropertyAccess/StringUtil.php b/src/Symfony/Component/PropertyAccess/StringUtil.php index d8704f38d2..7c0eadcacd 100644 --- a/src/Symfony/Component/PropertyAccess/StringUtil.php +++ b/src/Symfony/Component/PropertyAccess/StringUtil.php @@ -75,6 +75,9 @@ class StringUtil // lives (life), wives (wife) array('sevi', 4, false, true, 'ife'), + // moves (move) + array('sevom', 5, true, true, 'move'), + // hooves (hoof), dwarves (dwarf), elves (elf), leaves (leaf) array('sev', 3, true, true, 'f'), diff --git a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php index 66bb6c9767..6fc3d9a27b 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php @@ -118,6 +118,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase array('cheeses', array('chees', 'cheese', 'cheesis')), array('radii', 'radius'), array('objectives', 'objective'), + array('moves', 'move'), // test casing: if the first letter was uppercase, it should remain so array('Men', 'Man'),