Code Duplication    Length = 8-8 lines in 3 locations

Tests/Services/AzineEmailTwigExtensionTest.php 3 locations

@@ 26-33 (lines=8) @@
23
        $this->assertEquals('azine_email_bundle_twig_extension', $twigExtension->getName());
24
    }
25
26
    public function testTextWrap()
27
    {
28
        $twigExtension = $this->getAzineEmailTwigExtensionWithMocks();
29
        $wrapped = $twigExtension->textWrap($this->longText);
30
        $nlIndex = strpos($wrapped, "\n");
31
        $this->assertLessThanOrEqual(75, $nlIndex);
32
        $this->assertGreaterThan(65, $nlIndex);
33
    }
34
35
    public function testTextWrap60()
36
    {
@@ 35-42 (lines=8) @@
32
        $this->assertGreaterThan(65, $nlIndex);
33
    }
34
35
    public function testTextWrap60()
36
    {
37
        $twigExtension = $this->getAzineEmailTwigExtensionWithMocks();
38
        $wrapped = $twigExtension->textWrap($this->longText, 60);
39
        $nlIndex = strpos($wrapped, "\n");
40
        $this->assertLessThanOrEqual(60, $nlIndex);
41
        $this->assertGreaterThan(55, $nlIndex);
42
    }
43
44
    public function testTextWrap100()
45
    {
@@ 44-51 (lines=8) @@
41
        $this->assertGreaterThan(55, $nlIndex);
42
    }
43
44
    public function testTextWrap100()
45
    {
46
        $twigExtension = $this->getAzineEmailTwigExtensionWithMocks();
47
        $wrapped = $twigExtension->textWrap($this->longText, 100);
48
        $nlIndex = strpos($wrapped, "\n");
49
        $this->assertLessThanOrEqual(100, $nlIndex);
50
        $this->assertGreaterThan(90, $nlIndex);
51
    }
52
53
    public function testUrlEncodeText()
54
    {