new FakeType()]); $attributes = new FakeAttributes(); $properties = new Properties(FakePropertyDefinition::new()); $methods = new Methods(FakeMethodDefinition::new()); $class = new ClassDefinition($type, $attributes, $properties, $methods); self::assertSame(stdClass::class, $class->name()); self::assertSame($type, $class->type()); self::assertSame($attributes, $class->attributes()); self::assertSame($properties, $class->properties()); self::assertSame($methods, $class->methods()); } }