IssuerTest::testMinimalConstructor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 7
nc 1
nop 0
dl 0
loc 12
rs 10
c 1
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\OpenIDClientTest\Issuer;
6
7
use Facile\JoseVerifier\JWK\JwksProviderInterface;
8
use Facile\OpenIDClient\Issuer\Issuer;
9
use Facile\OpenIDClient\Issuer\Metadata\IssuerMetadataInterface;
10
use Facile\OpenIDClientTest\TestCase;
11
12
class IssuerTest extends TestCase
13
{
14
    public function testMinimalConstructor(): void
15
    {
16
        $metadata = $this->prophesize(IssuerMetadataInterface::class);
17
        $jwksProvider = $this->prophesize(JwksProviderInterface::class);
18
19
        $issuer = new Issuer(
20
            $metadata->reveal(),
21
            $jwksProvider->reveal()
22
        );
23
24
        static::assertSame($metadata->reveal(), $issuer->getMetadata());
25
        static::assertSame($jwksProvider->reveal(), $issuer->getJwksProvider());
26
    }
27
}
28