File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,6 @@ public function getFiles(): array
108
108
*/
109
109
public function getTypeName (array $ parameter , array $ spec = []): string
110
110
{
111
- if (isset ($ parameter ['enumName ' ])) {
112
- return \ucfirst ($ parameter ['enumName ' ]);
113
- }
114
- if (!empty ($ parameter ['enumValues ' ])) {
115
- return \ucfirst ($ parameter ['name ' ]);
116
- }
117
111
return match ($ parameter ['type ' ]) {
118
112
self ::TYPE_INTEGER => 'int ' ,
119
113
self ::TYPE_NUMBER => 'float64 ' ,
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ class Go112Test extends Base
17
17
];
18
18
protected string $ command =
19
19
'docker run --rm -v $(pwd):/app -w /app golang:1.12 sh -c "cd tests/languages/go/ && ./test.sh" ' ;
20
+
20
21
protected array $ expectedOutput = [
21
22
...Base::FOO_RESPONSES ,
22
23
...Base::BAR_RESPONSES ,
23
24
...Base::GENERAL_RESPONSES ,
24
25
...Base::DOWNLOAD_RESPONSES ,
25
- ...Base::ENUM_RESPONSES ,
26
26
...Base::EXCEPTION_RESPONSES ,
27
27
];
28
28
}
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ class Go118Test extends Base
17
17
];
18
18
protected string $ command =
19
19
'docker run --rm -v $(pwd):/app -w /app golang:1.18 sh -c "cd tests/languages/go/ && ./test.sh" ' ;
20
+
20
21
protected array $ expectedOutput = [
21
22
...Base::FOO_RESPONSES ,
22
23
...Base::BAR_RESPONSES ,
23
24
...Base::GENERAL_RESPONSES ,
24
25
...Base::DOWNLOAD_RESPONSES ,
25
- ...Base::ENUM_RESPONSES ,
26
26
...Base::EXCEPTION_RESPONSES ,
27
27
];
28
28
}
You can’t perform that action at this time.
0 commit comments