DeleteFileFormTest::testBuild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 7
rs 9.4286
cc 1
eloc 4
nc 1
nop 0
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