expectException(NoCasterForType::class); $this->expectExceptionCode(1630693475); $this->expectExceptionMessage("No caster was found to convert to type `$type`."); (new RootNodeBuilder(new CasterNodeBuilder([])))->build(FakeShell::new($type)); } }