AttributeExtractorTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 8
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A testExtractAttributesEmpty() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace DMK\MKSamlAuth\Tests\Unit;
5
6
use DMK\MKSamlAuth\AttributeExtractor;
7
use PHPUnit\Framework\TestCase;
8
use LightSaml\Model\Protocol\Response;
9
10
class AttributeExtractorTest extends TestCase
11
{
12
    public function testExtractAttributesEmpty()
13
    {
14
        $response = $this->prophesize(Response::class);
15
        $response->getAllAssertions()->willReturn([]);
16
17
        self::assertCount(0, AttributeExtractor::extractAttributes($response->reveal()));
18
    }
19
}
20