diff --git a/composer.json b/composer.json index 5498090..719e606 100644 --- a/composer.json +++ b/composer.json @@ -35,7 +35,7 @@ "require": { "php": ">=8.1", "ext-json": "*", - "spiral/core": "^3.15", + "spiral/core": "^3.14.7", "defuse/php-encryption": "^2.2" }, "require-dev": { diff --git a/tests/EncrypterFactoryTest.php b/tests/EncrypterFactoryTest.php index f326033..b0d0d10 100644 --- a/tests/EncrypterFactoryTest.php +++ b/tests/EncrypterFactoryTest.php @@ -14,7 +14,6 @@ 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 @@ -80,6 +79,9 @@ 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 68a365a..b420970 100644 --- a/tests/EncrypterTest.php +++ b/tests/EncrypterTest.php @@ -10,7 +10,6 @@ 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 @@ -24,6 +23,9 @@ public function testImmutable(): void $this->assertEquals($keyB, $new->getKey()); } + /** + * @covers \Spiral\Encrypter\Encrypter::encrypt + */ public function testEncryption(): void { $encrypter = new Encrypter(Key::CreateNewRandomKey()->saveToAsciiSafeString());