diff --git a/composer.json b/composer.json index ef88735..5498090 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "require": { "php": ">=8.1", "ext-json": "*", - "spiral/core": "^3.14.8", + "spiral/core": "^3.15", "defuse/php-encryption": "^2.2" }, "require-dev": { diff --git a/tests/EncrypterFactoryTest.php b/tests/EncrypterFactoryTest.php index b0d0d10..f326033 100644 --- a/tests/EncrypterFactoryTest.php +++ b/tests/EncrypterFactoryTest.php @@ -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 @@ -79,9 +80,6 @@ public function testExceptionKey(): void echo $factory->getKey(); } - /** - * @covers \Spiral\Encrypter\EncrypterFactory::generateKey - */ public function testGenerateKey(): void { $key = Key::CreateNewRandomKey()->saveToAsciiSafeString(); diff --git a/tests/EncrypterTest.php b/tests/EncrypterTest.php index b420970..68a365a 100644 --- a/tests/EncrypterTest.php +++ b/tests/EncrypterTest.php @@ -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 @@ -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());