diff --git a/src/Symfony/Component/Inflector/Tests/InflectorTest.php b/src/Symfony/Component/Inflector/Tests/InflectorTest.php index ad618c9593..946e76f4a2 100644 --- a/src/Symfony/Component/Inflector/Tests/InflectorTest.php +++ b/src/Symfony/Component/Inflector/Tests/InflectorTest.php @@ -323,4 +323,16 @@ class InflectorTest extends TestCase $this->assertEquals($expectedPlural, $plural); } + + public function testPluralizeEmptyString() + { + $plural = Inflector::pluralize(''); + $this->assertSame('', $plural); + } + + public function testSingularizeEmptyString() + { + $singular = Inflector::singularize(''); + $this->assertSame('', $singular); + } }