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'),