Skip to content

Commit

Permalink
Merge pull request #51 from pagemachine/test-already-narrowed-type
Browse files Browse the repository at this point in the history
Drop pointless type check in invalid keys test
  • Loading branch information
mbrodala authored Nov 11, 2024
2 parents 6fcc7f1 + 9427c73 commit 711374c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/AuthorizedKeysTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use org\bovigo\vfs\vfsStream;
use Pagemachine\AuthorizedKeys\AuthorizedKeys;
use Pagemachine\AuthorizedKeys\Exception\FilePermissionException;
use Pagemachine\AuthorizedKeys\Exception\InvalidKeyException;
use Pagemachine\AuthorizedKeys\InvalidPublicKey;
use Pagemachine\AuthorizedKeys\KeyInterface;
use Pagemachine\AuthorizedKeys\PublicKey;
Expand Down Expand Up @@ -356,7 +355,6 @@ public function handlesInvalidKeys()
$invalidKey = $keys[1];

$this->assertInstanceOf(InvalidPublicKey::class, $invalidKey);
$this->assertInstanceOf(InvalidKeyException::class, $invalidKey->getError());

$this->assertEquals($content, (string) $authorizedKeys);
}
Expand Down

0 comments on commit 711374c

Please sign in to comment.