/
BespredeL
/
encryption-form
Обзор
Документация
Войти
/
BespredeL
/
encryption-form
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
1
Аналитика
Безопасность
master
tests/Unit/Exceptions/MissingResourceExceptionTest.php
25 строк
721 B
Aleksandr Kireev
add: Добавлены тесты и их запуск в workflow
08 фев 2026, 13:06
08 фев 2026, 13:06
1a69bc4
Код
Авторство
О чём код?
<?php declare(strict_types=1); namespace Bespredel\EncryptionForm\Tests\Unit\Exceptions; use Bespredel\EncryptionForm\Exceptions\EncryptionFormException; use Bespredel\EncryptionForm\Exceptions\MissingResourceException; use PHPUnit\Framework\TestCase; class MissingResourceExceptionTest extends TestCase { public function testExtendsEncryptionFormException(): void { $e = new MissingResourceException('test'); $this->assertInstanceOf(EncryptionFormException::class, $e); } public function testMessageIsPreserved(): void { $msg = 'Required CSS files are missing.'; $e = new MissingResourceException($msg); $this->assertSame($msg, $e->getMessage()); } }