Skip to content

Commit

Permalink
rename resources
Browse files Browse the repository at this point in the history
  • Loading branch information
miladrahimi committed Nov 10, 2019
1 parent e58962e commit 22ba3a2
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/Cryptography/Keys/PrivateKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PrivateKeyTest extends TestCase
*/
public function test_with_valid_key_it_should_pass()
{
$key = new PrivateKey(__DIR__ . '/../../../resources/test/keys/private.pem');
$key = new PrivateKey(__DIR__ . '/../../../resources/test/keys/rsa-private.pem');
$this->assertNotNull($key->getResource());
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Cryptography/Keys/PublicKeyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PublicKeyTest extends TestCase
*/
public function test_with_valid_key_it_should_pass()
{
$key = new PublicKey(__DIR__ . '/../../../resources/test/keys/public.pem');
$key = new PublicKey(__DIR__ . '/../../../resources/test/keys/rsa-public.pem');
$this->assertNotNull($key->getResource());
}

Expand Down
4 changes: 2 additions & 2 deletions tests/ExamplesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public function test_simple_example()
*/
public function test_rsa_algorithms()
{
$privateKey = new PrivateKey(__DIR__ . '/../resources/test/keys/private.pem');
$publicKey = new PublicKey(__DIR__ . '/../resources/test/keys/public.pem');
$privateKey = new PrivateKey(__DIR__ . '/../resources/test/keys/rsa-private.pem');
$publicKey = new PublicKey(__DIR__ . '/../resources/test/keys/rsa-public.pem');

$signer = new RS256Signer($privateKey);
$verifier = new RS256Verifier($publicKey);
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ public function setUp()
{
parent::setUp();

$this->privateKey = new PrivateKey(__DIR__ . '/../resources/test/keys/private.pem');
$this->privateKey = new PrivateKey(__DIR__ . '/../resources/test/keys/rsa-private.pem');

$this->publicKey = new PublicKey(__DIR__ . '/../resources/test/keys/public.pem');
$this->publicKey = new PublicKey(__DIR__ . '/../resources/test/keys/rsa-public.pem');

$this->signer = $this->verifier = new HS256($this->key);

Expand Down

0 comments on commit 22ba3a2

Please sign in to comment.