File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -208,22 +208,6 @@ public function testNestedObjectArray(): void
208208 }
209209 }
210210
211- public function testEnum (): void
212- {
213- $ this ->modifyModelGenerator = static function (ModelGenerator $ generator ): void {
214- $ generator ->addPostProcessor (new BuilderClassPostProcessor ())->addPostProcessor (new EnumPostProcessor ());
215- };
216- $ className = $ this ->generateClassFromFile ('BasicSchema.json ' );
217-
218- $ builderClassName = $ className . 'Builder ' ;
219- $ builderObject = new $ builderClassName ();
220-
221- $ this ->assertSame ('string ' , $ this ->getParameterTypeAnnotation ($ builderObject , 'setName ' ));
222- $ this ->assertSame ('int|null ' , $ this ->getParameterTypeAnnotation ($ builderObject , 'setAge ' ));
223- $ this ->assertSame ('string|null ' , $ this ->getReturnTypeAnnotation ($ builderObject , 'getName ' ));
224- $ this ->assertSame ('int|null ' , $ this ->getReturnTypeAnnotation ($ builderObject , 'getAge ' ));
225- }
226-
227211 private function assertGeneratedBuilders (int $ expectedGeneratedBuilders ): void
228212 {
229213 $ dir = sys_get_temp_dir () . '/PHPModelGeneratorTest/Models ' ;
You can’t perform that action at this time.
0 commit comments