Code Duplication    Length = 7-7 lines in 2 locations

src/SumoCoders/FrameworkCoreBundle/Tests/Twig/FrameworkExtensionTest.php 2 locations

@@ 89-95 (lines=7) @@
86
        $this->assertEquals('foo', $this->frameworkExtension->convertToTranslation(' foo '));
87
    }
88
89
    public function testConvertToTranslationToLowerCase()
90
    {
91
        $this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('foo'));
92
        $this->assertEquals('FOO', $this->frameworkExtension->convertToTranslation('FOO'));
93
        $this->assertEquals('FoO', $this->frameworkExtension->convertToTranslation('FoO'));
94
        $this->assertEquals('fOo', $this->frameworkExtension->convertToTranslation('fOo'));
95
    }
96
97
    public function testConvertToTranslationReplaceFakeSpaces()
98
    {
@@ 114-120 (lines=7) @@
111
        $this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('foo 123'));
112
    }
113
114
    public function testTranslationWithSumoCodersInTheString()
115
    {
116
        $this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('SumoCoders.foo'));
117
        $this->assertEquals('foo', $this->frameworkExtension->convertToTranslation('sumocoders.foo'));
118
        $this->assertEquals('foo.sumocoders', $this->frameworkExtension->convertToTranslation('foo.sumocoders'));
119
        $this->assertEquals('foo.bar', $this->frameworkExtension->convertToTranslation('SumoCoders.foo.bar'));
120
    }
121
122
    public function testTranslationWithBundleInTheString()
123
    {