We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87e2da0 commit 9c21a9aCopy full SHA for 9c21a9a
PHP/CodeCoverage.php
@@ -184,7 +184,7 @@ public function append(array $data, $id = NULL)
184
unset($newFiles);
185
186
// Apply @covers filtering.
187
- if (is_object($id) && $id instanceof PHPUnit_Framework_TestCase) {
+ if ($id instanceof PHPUnit_Framework_TestCase) {
188
$linesToBeCovered = PHP_CodeCoverage_Util::getLinesToBeCovered(
189
get_class($id), $id->getName()
190
);
@@ -214,7 +214,7 @@ public function append(array $data, $id = NULL)
214
}
215
216
if (!empty($data)) {
217
218
$id = get_class($id) . '::' . $id->getName();
219
220
0 commit comments