Skip to content

Commit

Permalink
Merge pull request #1136: apply Rector on tests files
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Sep 5, 2024
1 parent 82ff1b5 commit f2e18f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/EncrypterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public function testBadKey(): void
{
$this->expectException(EncrypterException::class);

$encrypter = new Encrypter('bad-key');
new Encrypter('bad-key');
}

public function testBadWithKey(): void
{
$this->expectException(EncrypterException::class);

$encrypter = new Encrypter(Key::CreateNewRandomKey()->saveToAsciiSafeString());
$encrypter = $encrypter->withKey('bad-key');
$encrypter->withKey('bad-key');
}
}

0 comments on commit f2e18f2

Please sign in to comment.