Skip to content

Commit

Permalink
Update to use PHPUnit 10 syntax (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Nov 8, 2024
1 parent 9d88b3d commit afe8a5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"require": {
"php": ">=8.1",
"ext-json": "*",
"spiral/core": "^3.14.6",
"spiral/core": "^3.15",
"defuse/php-encryption": "^2.2"
},
"require-dev": {
Expand Down
4 changes: 1 addition & 3 deletions tests/EncrypterFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Spiral\Encrypter\EncryptionInterface;
use Spiral\Encrypter\Exception\EncrypterException;

#[\PHPUnit\Framework\Attributes\CoversClass(\Spiral\Encrypter\EncrypterFactory::class)]
class EncrypterFactoryTest extends TestCase
{
public function testInjection(): void
Expand Down Expand Up @@ -79,9 +80,6 @@ public function testExceptionKey(): void
echo $factory->getKey();
}

/**
* @covers \Spiral\Encrypter\EncrypterFactory::generateKey
*/
public function testGenerateKey(): void
{
$key = Key::CreateNewRandomKey()->saveToAsciiSafeString();
Expand Down
4 changes: 1 addition & 3 deletions tests/EncrypterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use Spiral\Encrypter\Exception\DecryptException;
use Spiral\Encrypter\Exception\EncrypterException;

#[\PHPUnit\Framework\Attributes\CoversClass(\Spiral\Encrypter\Encrypter::class)]
class EncrypterTest extends TestCase
{
public function testImmutable(): void
Expand All @@ -23,9 +24,6 @@ public function testImmutable(): void
$this->assertEquals($keyB, $new->getKey());
}

/**
* @covers \Spiral\Encrypter\Encrypter::encrypt
*/
public function testEncryption(): void
{
$encrypter = new Encrypter(Key::CreateNewRandomKey()->saveToAsciiSafeString());
Expand Down

0 comments on commit afe8a5e

Please sign in to comment.