Code Duplication    Length = 8-10 lines in 2 locations

tests/KochTest/Form/FormTest.php 2 locations

@@ 414-423 (lines=10) @@
411
        unset($form);
412
    }
413
414
    public function testuseDefaultFormDecoratorsMethodTrue()
415
    {
416
        $this->form->useDefaultFormDecorators(true);
417
418
        $this->form->registerDefaultFormDecorators();
419
        $default_form_decorators = $this->form->getDecorators();
420
        $this->assertFalse(empty($default_form_decorators));
421
        $this->assertTrue(is_object($default_form_decorators['form']));
422
        $this->assertTrue(is_a($default_form_decorators['form'], 'Koch\Form\AbstractFormDecorator'));
423
    }
424
425
    public function testregisterDefaultFormDecorators()
426
    {
@@ 425-432 (lines=8) @@
422
        $this->assertTrue(is_a($default_form_decorators['form'], 'Koch\Form\AbstractFormDecorator'));
423
    }
424
425
    public function testregisterDefaultFormDecorators()
426
    {
427
        $this->form->registerDefaultFormDecorators();
428
        $default_form_decorators = $this->form->getDecorators();
429
        $this->assertFalse(empty($default_form_decorators));
430
        $this->assertTrue(is_object($default_form_decorators['form']));
431
        $this->assertTrue(is_a($default_form_decorators['form'], 'Koch\Form\AbstractFormDecorator'));
432
    }
433
434
    public function testremoveDecorator()
435
    {