/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
tests/JsonSchema/SerializerTest.php
21 строка
541 B
Lucas Michot
[13.x] Simplify most of the exceptions expectations (#61049)
05 авг 2026, 18:34
Не верифицирован
05 авг 2026, 18:34
910cd94
Код
Авторство
О чём код?
<?php namespace Illuminate\Tests\JsonSchema; use Illuminate\JsonSchema\Types\Type; use PHPUnit\Framework\TestCase; use RuntimeException; class SerializerTest extends TestCase { public function test_it_does_not_know_how_to_serialize_unknown_types(): void { $this->expectExceptionObject(new RuntimeException('Unsupported [Illuminate\\JsonSchema\\Types\\Type@anonymous')); $type = new class extends Type { // anonymous type for triggering serializer failure }; $type->toArray(); } }