Skip to content

Commit c10009e

Browse files
authored
Merge pull request #158 from exonet/gitattributes
Define git archive excluded files
2 parents 3662902 + 019f964 commit c10009e

File tree

4 files changed

+28
-17
lines changed

4 files changed

+28
-17
lines changed

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.docker/ export-ignore
2+
.github/ export-ignore
3+
examples/ export-ignore
4+
tests/ export-ignore
5+
.editorconfig export-ignore
6+
.gitattributes export-ignore
7+
.gitignore export-ignore
8+
.php-cs-fixer.php export-ignore
9+
docker-compose.yml export-ignore
10+
phpunit.xml export-ignore
11+
run-tests.sh export-ignore

examples/cryptokeys_advanced.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
$cryptokeys->configurePrivateKey('RSASHA512', 4096)->create(true);
2626

2727
// You can also use an existing private key (example key from the PowerDNS unit tests):
28-
$existingPrivateKey = "Private-key-format: v1.2\n".
29-
"Algorithm: 8 (RSASHA256)\n".
30-
"Modulus: 4GlYLGgDI7ohnP8SmEW8EBERbNRusDcg0VQda/EPVHU=\n".
31-
"PublicExponent: AQAB\n".
32-
"PrivateExponent: JBnuXF5zOtkjtSz3odV+Fk5UNUTTeCsiI16dkcM7TVU=\n".
33-
"Prime1: /w7TM4118RoSEvP8+dgnCw==\n".
34-
"Prime2: 4T2KhkYLa3w7rdK3Cb2ifw==\n".
35-
"Exponent1: 3aeKj9Ct4JuhfWsgPBhGxQ==\n".
36-
"Exponent2: tfh1OMPQKBdnU6iATjNR2w==\n".
37-
"Coefficient: eVrHe/kauqOewSKndIImrg==)\n";
28+
$existingPrivateKey = "Private-key-format: v1.2\n"
29+
."Algorithm: 8 (RSASHA256)\n"
30+
."Modulus: 4GlYLGgDI7ohnP8SmEW8EBERbNRusDcg0VQda/EPVHU=\n"
31+
."PublicExponent: AQAB\n"
32+
."PrivateExponent: JBnuXF5zOtkjtSz3odV+Fk5UNUTTeCsiI16dkcM7TVU=\n"
33+
."Prime1: /w7TM4118RoSEvP8+dgnCw==\n"
34+
."Prime2: 4T2KhkYLa3w7rdK3Cb2ifw==\n"
35+
."Exponent1: 3aeKj9Ct4JuhfWsgPBhGxQ==\n"
36+
."Exponent2: tfh1OMPQKBdnU6iATjNR2w==\n"
37+
."Coefficient: eVrHe/kauqOewSKndIImrg==)\n";
3838

3939
// Create and activate a new cryptokey with the given private key:
4040
$cryptokeys->setPrivateKey($existingPrivateKey)->create(true);

tests/PowerdnsTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@ public function testZone(): void
9393
$this->assertTrue($powerDns->deleteZone('test.nl.'));
9494
}
9595

96-
public function listZonesArgumentDataProvider(): array
97-
{
98-
return [['true', true], ['false', false]];
99-
}
100-
10196
/**
10297
* @dataProvider listZonesArgumentDataProvider
10398
*/
@@ -143,6 +138,11 @@ public function testListZones(string $dnssecArgument, bool $listZonesArgument):
143138
}
144139
}
145140

141+
public function listZonesArgumentDataProvider(): array
142+
{
143+
return [['true', true], ['false', false]];
144+
}
145+
146146
public function testSearch(): void
147147
{
148148
$connector = Mockery::mock(Connector::class);

tests/Resources/ResourceRecordTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ function (ResourceRecord $updatedResourceRecord) {
5151

5252
public function testSetApiResponse(): void
5353
{
54-
$apiResponse =
55-
[
54+
$apiResponse
55+
= [
5656
'name' => 'record.test.nl.',
5757
'type' => 'A',
5858
'ttl' => 3600,

0 commit comments

Comments
 (0)