@@ -35,6 +35,8 @@ public function testAsymmetricVisibility($testMarker, $testType, $testContent)
3535                T_PUBLIC_SET ,
3636                T_PROTECTED_SET ,
3737                T_PRIVATE_SET ,
38+                 // For error cases 
39+                 constant ($ testType
3840            ],
3941            $ testContent
4042        );
@@ -125,6 +127,31 @@ public static function dataAsymmetricVisibility()
125127                'testType '     => 'T_PRIVATE_SET ' ,
126128                'testContent '  => 'PRIVATE(SET) ' ,
127129            ],
130+             'property, invalid case 1 '                                  => [
131+                 'testMarker '   => '/* testInvalidUnsetProperty */ ' ,
132+                 'testType '     => 'T_PUBLIC ' ,
133+                 'testContent '  => 'public ' ,
134+             ],
135+             'property, invalid case 2 '                                  => [
136+                 'testMarker '   => '/* testInvalidSpaceProperty */ ' ,
137+                 'testType '     => 'T_PUBLIC ' ,
138+                 'testContent '  => 'public ' ,
139+             ],
140+             'property, invalid case 3 '                                  => [
141+                 'testMarker '   => '/* testInvalidCommentProperty */ ' ,
142+                 'testType '     => 'T_PROTECTED ' ,
143+                 'testContent '  => 'protected ' ,
144+             ],
145+             'property, invalid case 4 '                                  => [
146+                 'testMarker '   => '/* testInvalidGetProperty */ ' ,
147+                 'testType '     => 'T_PRIVATE ' ,
148+                 'testContent '  => 'private ' ,
149+             ],
150+             'property, invalid case 5 '                                  => [
151+                 'testMarker '   => '/* testInvalidNoParenProperty */ ' ,
152+                 'testType '     => 'T_PRIVATE ' ,
153+                 'testContent '  => 'private ' ,
154+             ],
128155
129156            // Constructor property promotion. 
130157            'promotion, public set, no read visibility, lowercase '      => [
@@ -187,6 +214,38 @@ public static function dataAsymmetricVisibility()
187214                'testType '     => 'T_PRIVATE_SET ' ,
188215                'testContent '  => 'PRIVATE(SET) ' ,
189216            ],
217+             'promotion, invalid case 1 '                                 => [
218+                 'testMarker '   => '/* testInvalidUnsetCPP */ ' ,
219+                 'testType '     => 'T_PUBLIC ' ,
220+                 'testContent '  => 'public ' ,
221+             ],
222+             'promotion, invalid case 2 '                                 => [
223+                 'testMarker '   => '/* testInvalidSpaceCPP */ ' ,
224+                 'testType '     => 'T_PUBLIC ' ,
225+                 'testContent '  => 'public ' ,
226+             ],
227+             'promotion, invalid case 3 '                                 => [
228+                 'testMarker '   => '/* testInvalidCommentCPP */ ' ,
229+                 'testType '     => 'T_PROTECTED ' ,
230+                 'testContent '  => 'protected ' ,
231+             ],
232+             'promotion, invalid case 4 '                                 => [
233+                 'testMarker '   => '/* testInvalidGetCPP */ ' ,
234+                 'testType '     => 'T_PRIVATE ' ,
235+                 'testContent '  => 'private ' ,
236+             ],
237+             'promotion, invalid case 5 '                                 => [
238+                 'testMarker '   => '/* testInvalidNoParenCPP */ ' ,
239+                 'testType '     => 'T_PRIVATE ' ,
240+                 'testContent '  => 'private ' ,
241+             ],
242+ 
243+             // Live coding. 
244+             'live coding '                                               => [
245+                 'testMarker '   => '/* testLiveCoding */ ' ,
246+                 'testType '     => 'T_PRIVATE ' ,
247+                 'testContent '  => 'private ' ,
248+             ]
190249        ];
191250
192251    }//end dataAsymmetricVisibility() 
0 commit comments