File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
- name : Run release drafter
16
16
id : draft
17
- uses : release-drafter/release-drafter@v5
17
+ uses : release-drafter/release-drafter@v6
18
18
env :
19
19
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
20
20
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- class BasicAuthConnector extends \Exonet \Powerdns \Connector
3
+ use Exonet \Powerdns \Connector ;
4
+ use Exonet \Powerdns \Powerdns ;
5
+ use GuzzleHttp \HandlerStack ;
6
+
7
+ class BasicAuthConnector extends Connector
4
8
{
5
9
private $ basicAuthUsername ;
6
10
7
11
private $ basicAuthPassword ;
8
12
9
13
public function __construct (
10
- Exonet \ Powerdns \ Powerdns $ client ,
11
- ?GuzzleHttp \ HandlerStack $ guzzleHandlerStack = null ,
14
+ Powerdns $ client ,
15
+ ?HandlerStack $ guzzleHandlerStack = null ,
12
16
?string $ basicAuthUsername = null ,
13
17
?string $ basicAuthPassword = null
14
18
) {
Original file line number Diff line number Diff line change 4
4
5
5
require __DIR__ .'/CliLogger.php ' ;
6
6
7
+ use Exonet \Powerdns \Exceptions \PowerdnsException ;
7
8
use Exonet \Powerdns \MetaType ;
8
9
use Exonet \Powerdns \Powerdns ;
9
10
use Exonet \Powerdns \RecordType ;
25
26
// Delete the zone if it already exists so this example can be executed multiple times.
26
27
try {
27
28
$ powerdns ->deleteZone ($ domain );
28
- } catch (\ Exonet \ Powerdns \ Exceptions \ PowerdnsException $ e ) {
29
+ } catch (PowerdnsException $ e ) {
29
30
}
30
31
31
32
// Create a new zone with the defined records and name servers.
Original file line number Diff line number Diff line change 10
10
use GuzzleHttp \Handler \MockHandler ;
11
11
use GuzzleHttp \HandlerStack ;
12
12
use GuzzleHttp \Middleware ;
13
+ use GuzzleHttp \Psr7 \Request ;
13
14
use GuzzleHttp \Psr7 \Response ;
14
15
use Mockery ;
15
16
use PHPUnit \Framework \TestCase ;
@@ -84,7 +85,7 @@ public function testApiCallsAreExecuted()
84
85
$ this ->assertCount (6 , $ apiCalls );
85
86
86
87
foreach ($ apiCalls as $ apiCall ) {
87
- /** @var \GuzzleHttp\Psr7\ Request $request */
88
+ /** @var Request $request */
88
89
$ request = $ apiCall ['request ' ];
89
90
$ this ->assertSame ('/api/v1/servers/localhost/test ' , $ request ->getUri ()->getPath ());
90
91
$ this ->assertSame ('very_secret_key ' , $ request ->getHeader ('X-API-Key ' )[0 ]);
You can’t perform that action at this time.
0 commit comments