Completed
Pull Request — develop (#9)
by
unknown
03:41
created

SmartIdStatusResultTest::expectedFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 11
Ratio 100 %

Importance

Changes 0
Metric Value
dl 11
loc 11
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 8
nc 1
nop 0
1
<?php
2
namespace Isign\Tests\Login;
3
4
use Isign\Login\SmartIdStatusResult;
5
use Isign\QueryInterface;
6
use Isign\Tests\TestCase;
7
use Isign\Tests\TestResultFieldsTrait;
8
use Isign\Tests\Login\SmartIdStatusTest;
9
10 View Code Duplication
class SmartIdStatusResultTest extends TestCase
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
{
12
    private $method;
13
    
14
    public function setUp()
15
    {
16
        $this->method = new SmartIdStatusResult();
17
    }
18
19
    public function testStatusInterface()
20
    {
21
        $this->assertInstanceOf('Isign\StatusResultInterface', $this->method);
22
    }
23
    
24
    public function testExtendsStatusResultAbstract()
25
    {
26
        $this->assertInstanceOf('Isign\Login\AbstractStatusResult', $this->method);
27
    }
28
29
    use TestResultFieldsTrait;
30
31
    public function expectedFields()
32
    {
33
        return [
34
            ['status'],
35
            ['certificate'],
36
            ['code'],
37
            ['country'],
38
            ['name'],
39
            ['surname'],  
40
        ];
41
    }
42
}
43