Skip to content

Commit edd3f39

Browse files
author
May Meow
committed
Update tests
1 parent 3419e99 commit edd3f39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/RSAParameters.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ public function __construct()
2121
/**
2222
* @param string|null $passphrase
2323
* @param array|null $configArgs
24-
* @return RSACryptoServiceProvider
24+
* @return $this
2525
*/
26-
public function generateKeys(?string $passphrase = null, ?array $configArgs = null) : RSACryptoServiceProvider
26+
public function generateKeys(?string $passphrase = null, ?array $configArgs = null) : RSAParameters
2727
{
2828
$keys = openssl_pkey_new($this->config);
2929

@@ -86,9 +86,9 @@ public function getPassphrase(): string
8686

8787
/**
8888
* @param string $passphrase
89-
* @return RSACryptoServiceProvider
89+
* @return $this
9090
*/
91-
public function setPassphrase(string $passphrase): RSACryptoServiceProvider
91+
public function setPassphrase(string $passphrase): RSAParameters
9292
{
9393
$this->passphrase = $passphrase;
9494

tests/RSAParametersTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ class RSAParametersTest extends TestCase
1111
/** @test */
1212
public function canGenerateKeys() :void {
1313
$parameters = new RSAParameters();
14-
$parameters->generateKeys();
14+
$keys = $parameters->generateKeys();
1515

16-
$this->assertInstanceOf(RSAParameters::class, $parameters);
16+
$this->assertInstanceOf(RSAParameters::class, $keys);
1717
}
1818
}

0 commit comments

Comments
 (0)