File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 430430 $ draft202012Schema = Schema::string ('test ' , SchemaVersion::Draft_2020_12);
431431
432432 expect (fn (): StringSchema => $ draft07Schema ->contentEncoding ('base64 ' ))->not ->toThrow (SchemaException::class);
433- expect (fn (): StringSchema => $ draft07Schema ->contentMediaType ('application/json ' ))->not ->toThrow (SchemaException::class);
433+ expect (fn (): StringSchema => $ draft07Schema ->contentMediaType ('application/json ' ))->not ->toThrow (
434+ SchemaException::class,
435+ );
434436 expect (fn (): StringSchema => $ draft201909Schema ->contentEncoding ('base64 ' ))->not ->toThrow (SchemaException::class);
435- expect (fn (): StringSchema => $ draft201909Schema ->contentMediaType ('application/json ' ))->not ->toThrow (SchemaException::class);
437+ expect (fn (): StringSchema => $ draft201909Schema ->contentMediaType ('application/json ' ))->not ->toThrow (
438+ SchemaException::class,
439+ );
436440 expect (fn (): StringSchema => $ draft202012Schema ->contentEncoding ('base64 ' ))->not ->toThrow (SchemaException::class);
437- expect (fn (): StringSchema => $ draft202012Schema ->contentMediaType ('application/json ' ))->not ->toThrow (SchemaException::class);
441+ expect (fn (): StringSchema => $ draft202012Schema ->contentMediaType ('application/json ' ))->not ->toThrow (
442+ SchemaException::class,
443+ );
438444});
439445
440446it ('allows string formats for custom validation ' , function (): void {
You can’t perform that action at this time.
0 commit comments