RegistrationTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A testBuildForm() 0 10 1
1
<?php
2
/* Copyright (C) 2018 Michael Giesler
3
 *
4
 * This file is part of Dembelo.
5
 *
6
 * Dembelo is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Affero 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
 * Dembelo 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 Affero General Public License 3 for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License 3
17
 * along with Dembelo. If not, see <http://www.gnu.org/licenses/>.
18
 */
19
20
namespace DembeloMain\Tests\Form;
21
22
use DembeloMain\Form\Registration;
23
use PHPUnit\Framework\TestCase;
24
use Symfony\Component\Form\FormBuilderInterface;
25
26
/**
27
 * Class LoginTest
28
 */
29
class RegistrationTest extends TestCase
30
{
31
    /**
32
     * @return void
33
     */
34
    public function testBuildForm(): void
35
    {
36
        $form = new Registration();
37
        $options = [];
38
39
        /** @var FormBuilderInterface|\PHPUnit_Framework_MockObject_MockObject $builderMock */
40
        $builderMock = $this->createMock(FormBuilderInterface::class);
41
        $builderMock->expects(self::exactly(6))->method('add')->willReturnSelf();
42
43
        $form->buildForm($builderMock, $options);
44
    }
45
}
46