Code Duplication    Length = 5-5 lines in 2 locations

tests/KochTest/Form/FormTest.php 2 locations

@@ 54-58 (lines=5) @@
51
        $this->form = new Form('Form', 'GET', 'someActionName');
52
53
        $this->assertEquals('GET', $this->form->getMethod());
54
        if (defined('REWRITE_ENGINE_ON') and REWRITE_ENGINE_ON) {
55
            $expectedURL = WWW_ROOT . 'someActionName';
56
        } else {
57
            $expectedURL = WWW_ROOT . 'index.php?mod=someActionName';
58
        }
59
        $this->assertEquals($expectedURL, $this->form->getAction());
60
    }
61
@@ 96-100 (lines=5) @@
93
    {
94
        // set internal url - rebuilds the external url via router
95
        $this->form->setAction('/news/show');
96
        if (defined('REWRITE_ENGINE_ON') and REWRITE_ENGINE_ON) {
97
            $expectedURL = WWW_ROOT . 'news/show';
98
        } else {
99
            $expectedURL = WWW_ROOT . 'index.php?mod=news&ctrl=show';
100
        }
101
        $this->assertEquals($expectedURL, $this->form->getAction());
102
103
        // set external url