@@ -66,7 +66,7 @@ public function testGetMethodMetrics(): void
66
66
<metrics loc="11" ncloc="11" classes="0"
67
67
methods="0" coveredmethods="0"
68
68
conditionals="0" coveredconditionals="0"
69
- statements="50 " coveredstatements="1"
69
+ statements="5 " coveredstatements="1"
70
70
elements="0" coveredelements="0"/>
71
71
<line num="29" type="method" name="isFoobar" visibility="public" complexity="1" crap="1" count="1"/>
72
72
<line num="31" type="stmt" count="0"/>
@@ -164,24 +164,33 @@ public static function multiFilesDataProvider(): array
164
164
'first 100 % ' => [
165
165
'<file name="utTestFile.php">
166
166
<metrics loc="11" ncloc="11" statements="1" coveredstatements="1"/>
167
+ <line num="1" type="method" name="methodName" count="1"/>
168
+ <line num="2" type="stmt" count="1"/>
167
169
</file> ' ,
168
170
' <file name="utTestFile.php">
169
171
<metrics loc="11" ncloc="11" statements="0" coveredstatements="0"/>
172
+ <line num="1" type="method" name="methodName" count="1"/>
170
173
</file> ' ,
171
- 0 ,
174
+ 1 ,
172
175
100.0 ,
173
- []
176
+ [2 ]
174
177
],
175
178
'second 100% ' => [
176
179
'<file name="utTestFile.php">
177
180
<metrics loc="11" ncloc="11" statements="2" coveredstatements="0"/>
181
+ <line num="1" type="method" name="methodName" count="1"/>
182
+ <line num="2" type="stmt" count="0"/>
183
+ <line num="3" type="stmt" count="0"/>
178
184
</file> ' ,
179
185
'<file name="utTestFile.php">
180
186
<metrics loc="11" ncloc="11" statements="2" coveredstatements="2"/>
187
+ <line num="1" type="method" name="methodName" count="1"/>
188
+ <line num="2" type="stmt" count="1"/>
189
+ <line num="3" type="stmt" count="1"/>
181
190
</file> ' ,
182
- 0 ,
191
+ 1 ,
183
192
100.0 ,
184
- []
193
+ [2 , 3 ]
185
194
]
186
195
];
187
196
}
0 commit comments