DeleteFileFormTest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 1
cbo 1
dl 0
loc 21
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A setUp() 0 4 1
A testBuild() 0 7 1
1
<?php
2
3
namespace DmFilemanTest\Form;
4
5
use DmFileman\Form\DeleteFileForm as Form;
6
7
class DeleteFileFormTest extends \PHPUnit_Framework_TestCase
8
{
9
    /** @var Form */
10
    protected $sut;
11
12
    public function setUp()
13
    {
14
        $this->sut = new Form();
15
    }
16
17
    /**
18
     * @covers DmFileman\Form\DeleteFileForm
19
     */
20
    public function testBuild()
21
    {
22
        $this->sut->build();
23
24
        $this->assertInstanceOf('Zend\Form\Element\Text', $this->sut->get(Form::NAME));
25
        $this->assertInstanceOf('Zend\Form\Element\Csrf', $this->sut->get(Form::SECURITY));
26
    }
27
}
28