@@ -92,33 +92,36 @@ public function validConstantTypes()
92
92
return [
93
93
[
94
94
new PropertyValueGenerator ([], PropertyValueGenerator::TYPE_ARRAY , ValueGenerator::OUTPUT_SINGLE_LINE ),
95
- ' const FOO = []; ' ,
95
+ ' public const FOO = []; ' ,
96
96
],
97
97
[
98
98
new PropertyValueGenerator (
99
99
[],
100
100
PropertyValueGenerator::TYPE_ARRAY_LONG ,
101
101
ValueGenerator::OUTPUT_SINGLE_LINE
102
102
),
103
- ' const FOO = array(); ' ,
103
+ ' public const FOO = array(); ' ,
104
104
],
105
105
[
106
106
new PropertyValueGenerator (
107
107
[],
108
108
PropertyValueGenerator::TYPE_ARRAY_SHORT ,
109
109
ValueGenerator::OUTPUT_SINGLE_LINE
110
110
),
111
- ' const FOO = []; ' ,
111
+ ' public const FOO = []; ' ,
112
+ ],
113
+ [new PropertyValueGenerator (true , PropertyValueGenerator::TYPE_BOOL ), ' public const FOO = true; ' ],
114
+ [new PropertyValueGenerator (true , PropertyValueGenerator::TYPE_BOOLEAN ), ' public const FOO = true; ' ],
115
+ [new PropertyValueGenerator (1 , PropertyValueGenerator::TYPE_INT ), ' public const FOO = 1; ' ],
116
+ [new PropertyValueGenerator (1 , PropertyValueGenerator::TYPE_INTEGER ), ' public const FOO = 1; ' ],
117
+ [new PropertyValueGenerator (0.1 , PropertyValueGenerator::TYPE_DOUBLE ), ' public const FOO = 0.1; ' ],
118
+ [new PropertyValueGenerator (0.1 , PropertyValueGenerator::TYPE_FLOAT ), ' public const FOO = 0.1; ' ],
119
+ [new PropertyValueGenerator ('bar ' , PropertyValueGenerator::TYPE_STRING ), " public const FOO = 'bar'; " ],
120
+ [new PropertyValueGenerator (null , PropertyValueGenerator::TYPE_NULL ), ' public const FOO = null; ' ],
121
+ [
122
+ new PropertyValueGenerator ('PHP_EOL ' , PropertyValueGenerator::TYPE_CONSTANT ),
123
+ ' public const FOO = PHP_EOL; ' ,
112
124
],
113
- [new PropertyValueGenerator (true , PropertyValueGenerator::TYPE_BOOL ), ' const FOO = true; ' ],
114
- [new PropertyValueGenerator (true , PropertyValueGenerator::TYPE_BOOLEAN ), ' const FOO = true; ' ],
115
- [new PropertyValueGenerator (1 , PropertyValueGenerator::TYPE_INT ), ' const FOO = 1; ' ],
116
- [new PropertyValueGenerator (1 , PropertyValueGenerator::TYPE_INTEGER ), ' const FOO = 1; ' ],
117
- [new PropertyValueGenerator (0.1 , PropertyValueGenerator::TYPE_DOUBLE ), ' const FOO = 0.1; ' ],
118
- [new PropertyValueGenerator (0.1 , PropertyValueGenerator::TYPE_FLOAT ), ' const FOO = 0.1; ' ],
119
- [new PropertyValueGenerator ('bar ' , PropertyValueGenerator::TYPE_STRING ), " const FOO = 'bar'; " ],
120
- [new PropertyValueGenerator (null , PropertyValueGenerator::TYPE_NULL ), ' const FOO = null; ' ],
121
- [new PropertyValueGenerator ('PHP_EOL ' , PropertyValueGenerator::TYPE_CONSTANT ), ' const FOO = PHP_EOL; ' ],
122
125
];
123
126
}
124
127
0 commit comments