Code Duplication    Length = 16-16 lines in 2 locations

tests/FwlibTest/Web/HtmlHelperTest.php 2 locations

@@ 27-42 (lines=16) @@
24
    }
25
26
27
    public function testSetGetCss()
28
    {
29
        $helper = $this->buildMock();
30
31
        $helper->addCss('foo', 'path/foo/');
32
        $helper->addCss('bar', 'path/bar/');
33
        $this->assertEquals(2, count($helper->getCss()));
34
        $this->assertEquals('path/foo/', $helper->getCss('foo')['href']);
35
36
        $helper->removeCss('bar');
37
        $this->assertEquals(1, count($helper->getCss()));
38
39
        $helper->clearCss();
40
        $this->assertEmpty($helper->getCss('foo'));
41
        $this->assertEmpty($helper->getCss());
42
    }
43
44
45
    public function testSetGetJs()
@@ 45-60 (lines=16) @@
42
    }
43
44
45
    public function testSetGetJs()
46
    {
47
        $helper = $this->buildMock();
48
49
        $helper->addJs('foo', 'path/foo/');
50
        $helper->addJs('bar', 'path/bar/');
51
        $this->assertEquals(2, count($helper->getJs()));
52
        $this->assertEquals('path/foo/', $helper->getJs('foo'));
53
54
        $helper->removeJs('bar');
55
        $this->assertEquals(1, count($helper->getJs()));
56
57
        $helper->clearJs();
58
        $this->assertEmpty($helper->getJs('foo'));
59
        $this->assertEmpty($helper->getJs());
60
    }
61
62
63
    public function testSetGetRootPath()