testShouldReturnNullOnGetAuthorization()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
c 0
b 0
f 0
rs 9.9666
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Facile\OAuth2\HttpClient\Test\Authorization;
6
7
use Facile\OAuth2\HttpClient\Authorization\NullProvider;
8
use Facile\OAuth2\HttpClient\Request\OAuth2RequestInterface;
9
use Facile\OpenIDClient\Client\ClientInterface;
10
use PHPUnit\Framework\TestCase;
11
12
class NullProviderTest extends TestCase
13
{
14
    public function testShouldReturnNullOnGetAuthorization(): void
15
    {
16
        $client = $this->prophesize(ClientInterface::class);
17
        $request = $this->prophesize(OAuth2RequestInterface::class);
18
19
        $provider = new NullProvider();
20
21
        $this->assertNull($provider->getAuthorization($client->reveal(), $request->reveal()));
22
    }
23
}
24