We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87c9053 commit 73a32c9Copy full SHA for 73a32c9
src/Internal/Key.php
@@ -17,6 +17,11 @@ public function __construct($dataArray)
17
$this->dataArray = $dataArray;
18
}
19
20
+ public function parsed(): array
21
+ {
22
+ return $this->dataArray;
23
+ }
24
+
25
public function publicKeyContents(): string
26
{
27
return $this->extractString('key');
tests/Unit/Internal/KeyTest.php
@@ -21,6 +21,7 @@ public function testAccessorsUsingFakeKeyData(): void
],
];
$key = new Key($data);
+ $this->assertSame($data, $key->parsed());
$this->assertSame(512, $key->numberOfBits());
$this->assertSame('x-key', $key->publicKeyContents());
$this->assertTrue($key->type()->isRSA());
0 commit comments