Code Duplication    Length = 10-11 lines in 2 locations

tests/KochTest/Form/FormTest.php 2 locations

@@ 461-470 (lines=10) @@
458
        $this->form->getDecorator('not-existing-formdecorator');
459
    }
460
461
    public function testRender()
462
    {
463
        $this->form->addElement('Textarea');
464
465
        $html = $this->form->render();
466
        $this->assertFalse(empty($html));
467
        $this->assertContains('<form', $html);
468
        $this->assertContains('<textarea id="textarea-formelement-0">', $html);
469
        $this->assertContains('</form>', $html);
470
    }
471
472
    public function testRenderWithDecorator()
473
    {
@@ 494-504 (lines=11) @@
491
        $this->assertContains('</form>', $html);
492
    }
493
494
    public function testRenderViaToString()
495
    {
496
        $this->form->addElement('Textarea');
497
498
        $html = $this->form->__toString();
499
500
        $this->assertFalse(empty($html));
501
        $this->assertContains('<form', $html);
502
        $this->assertContains('<textarea id="textarea-formelement-0">', $html);
503
        $this->assertContains('</form>', $html);
504
    }
505
506
    public function testAddElement()
507
    {