From 6ef92fd4e8dc3c0d7da5ca49acb3146c7b75bb55 Mon Sep 17 00:00:00 2001 From: Fran Moreno Date: Sun, 7 Apr 2013 23:48:44 +0200 Subject: [PATCH] [PropertyAccess] Add objectives 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 012ed8846b..d8704f38d2 100644 --- a/src/Symfony/Component/PropertyAccess/StringUtil.php +++ b/src/Symfony/Component/PropertyAccess/StringUtil.php @@ -69,6 +69,9 @@ class StringUtil // atlases (atlas), kisses (kiss) array('ses', 3, true, true, array('s', 'se', 'sis')), + // objectives (objective), alternative (alternatives) + array('sevit', 5, true, true, 'tive'), + // lives (life), wives (wife) array('sevi', 4, false, true, 'ife'), diff --git a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php index 3c36f91a9b..66bb6c9767 100644 --- a/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php +++ b/src/Symfony/Component/PropertyAccess/Tests/StringUtilTest.php @@ -117,6 +117,7 @@ class StringUtilTest extends \PHPUnit_Framework_TestCase array('bees', array('be', 'bee')), array('cheeses', array('chees', 'cheese', 'cheesis')), array('radii', 'radius'), + array('objectives', 'objective'), // test casing: if the first letter was uppercase, it should remain so array('Men', 'Man'),