FormPlainControlTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 4

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 4
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A test1() 0 11 1
1
<?php
2
3
/*
4
 * Copyright (C) 2015 Michael Herold <[email protected]>
5
 *
6
 * This program is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 */
19
20
namespace hemio\form\template;
21
22
/**
23
 * Description of FormPlainControlTest
24
 *
25
 * @author Michael Herold <[email protected]>
26
 */
27
class FormPlainControlTest extends \Helpers {
28
29
    public function test1() {
30
        $form = new \hemio\form\FormPost('test');
31
32
        $form->addInheritableAppendage(
33
                \hemio\form\FormPost::FORM_FIELD_TEMPLATE, new FormPlainControl()
34
        );
35
36
        $form->addChild(new \hemio\form\FieldEmail('test1', 'title1'));
37
38
        $form->__toString();
39
    }
40
41
}
42