File tree Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Expand file tree Collapse file tree 2 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -164,17 +164,29 @@ public function testGetLinesToBeIgnoredOneLineAnnotations()
164164 array (
165165 1 => TRUE ,
166166 2 => TRUE ,
167- 7 => TRUE ,
168167 3 => TRUE ,
169168 4 => TRUE ,
170169 5 => TRUE ,
171170 6 => TRUE ,
171+ 7 => TRUE ,
172172 8 => TRUE ,
173173 9 => TRUE ,
174174 10 => TRUE ,
175175 11 => TRUE ,
176176 12 => TRUE ,
177- 13 => TRUE
177+ 13 => TRUE ,
178+ 14 => TRUE ,
179+ 17 => TRUE ,
180+ 19 => TRUE ,
181+ 22 => TRUE ,
182+ 23 => TRUE ,
183+ 27 => TRUE ,
184+ 28 => TRUE ,
185+ 29 => TRUE ,
186+ 30 => TRUE ,
187+ 31 => TRUE ,
188+ 32 => TRUE ,
189+ 33 => TRUE ,
178190 ),
179191 PHP_CodeCoverage_Util::getLinesToBeIgnored (
180192 TEST_FILES_PATH . 'source_with_oneline_annotations.php '
Original file line number Diff line number Diff line change @@ -11,3 +11,25 @@ public function bar()
1111 {
1212 }
1313}
14+
15+ function baz ()
16+ {
17+ // a one-line comment
18+ print '* ' ; // a one-line comment
19+
20+ /* a one-line comment */
21+ print '* ' ; /* a one-line comment */
22+
23+ /* a one-line comment
24+ */
25+ print '* ' ; /* a one-line comment
26+ */
27+
28+ print '* ' ; // @codeCoverageIgnore
29+
30+ print '* ' ; // @codeCoverageIgnoreStart
31+ print '* ' ;
32+ print '* ' ; // @codeCoverageIgnoreEnd
33+
34+ print '* ' ;
35+ }
You can’t perform that action at this time.
0 commit comments