6
6
use CloudPlayDev \ConfluenceClient \ConfluenceClient ;
7
7
use CloudPlayDev \ConfluenceClient \HttpClient \Builder ;
8
8
use GuzzleHttp \Psr7 \Uri ;
9
- use Http \Client \Common \HttpMethodsClientInterface ;
10
9
use Http \Discovery \Psr17FactoryDiscovery ;
11
10
use PHPUnit \Framework \TestCase ;
12
11
use Psr \Http \Message \UriFactoryInterface ;
13
- use Psr \Http \Message \UriInterface ;
14
12
15
13
class ConfluenceClientTest extends TestCase
16
14
{
17
15
18
16
public function testCanUseCustomClientBuilder (): void
19
17
{
20
18
$ builder = $ this ->createMock (Builder::class);
21
- $ builder ->expects ($ this -> once ())
19
+ $ builder ->expects (static :: once ())
22
20
->method ('getHttpClient ' );
23
21
$ builder ->method ('getUriFactory ' )->willReturn (Psr17FactoryDiscovery::findUriFactory ());
24
22
@@ -29,10 +27,10 @@ public function testCanUseCustomClientBuilder(): void
29
27
public function testCanUseBasicAuth (): void
30
28
{
31
29
$ builder = $ this ->createMock (Builder::class);
32
- $ builder ->expects ($ this -> atLeast (2 ))
30
+ $ builder ->expects (static :: atLeast (2 ))
33
31
->method ('addPlugin ' );
34
32
35
- $ builder ->expects ($ this -> atLeast (2 ))
33
+ $ builder ->expects (static :: atLeast (2 ))
36
34
->method ('removePlugin ' );
37
35
38
36
$ builder ->method ('getUriFactory ' )->willReturn (Psr17FactoryDiscovery::findUriFactory ());
@@ -44,10 +42,10 @@ public function testCanUseBasicAuth(): void
44
42
public function testCanUseAuth (): void
45
43
{
46
44
$ builder = $ this ->createMock (Builder::class);
47
- $ builder ->expects ($ this -> atLeast (2 ))
45
+ $ builder ->expects (static :: atLeast (2 ))
48
46
->method ('addPlugin ' );
49
47
50
- $ builder ->expects ($ this -> atLeast (2 ))
48
+ $ builder ->expects (static :: atLeast (2 ))
51
49
->method ('removePlugin ' );
52
50
53
51
$ builder ->method ('getUriFactory ' )->willReturn (Psr17FactoryDiscovery::findUriFactory ());
@@ -59,10 +57,10 @@ public function testCanUseAuth(): void
59
57
public function testCanUseUsernameAndPasswortInUri (): void
60
58
{
61
59
$ builder = $ this ->createMock (Builder::class);
62
- $ builder ->expects ($ this -> exactly (4 ))
60
+ $ builder ->expects (static :: exactly (4 ))
63
61
->method ('addPlugin ' );
64
62
65
- $ builder ->expects ($ this -> exactly (2 ))
63
+ $ builder ->expects (static :: exactly (2 ))
66
64
->method ('removePlugin ' );
67
65
68
66
$ urlFactory = $ this ->createMock (UriFactoryInterface::class);
0 commit comments