build(FakeShell::new(ListType::native())); self::assertSame([], $node->value()); self::assertEmpty($node->node()->children()); } public function test_invalid_type_fails_assertion(): void { $this->expectException(AssertionError::class); (new RootNodeBuilder(new ListNodeBuilder(true)))->build(FakeShell::new(new FakeType())); } }