1010
1111namespace SebastianBergmann \CodeCoverage ;
1212
13+ use PHPUnit \Framework \TestCase ;
14+ use PHPUnit \Runner \PhptTestCase ;
1315use SebastianBergmann \CodeCoverage \Driver \Driver ;
1416use SebastianBergmann \CodeCoverage \Driver \Xdebug ;
1517use SebastianBergmann \CodeCoverage \Driver \HHVM ;
@@ -340,7 +342,7 @@ public function append(array $data, $id = null, $append = true, $linesToBeCovere
340342 $ size = 'unknown ' ;
341343 $ status = null ;
342344
343- if ($ id instanceof \PHPUnit_Framework_TestCase ) {
345+ if ($ id instanceof TestCase ) {
344346 $ _size = $ id ->getSize ();
345347
346348 if ($ _size == \PHPUnit \Util \Test::SMALL ) {
@@ -353,7 +355,7 @@ public function append(array $data, $id = null, $append = true, $linesToBeCovere
353355
354356 $ status = $ id ->getStatus ();
355357 $ id = get_class ($ id ) . ':: ' . $ id ->getName ();
356- } elseif ($ id instanceof \PHPUnit_Extensions_PhptTestCase ) {
358+ } elseif ($ id instanceof PhptTestCase ) {
357359 $ size = 'large ' ;
358360 $ id = $ id ->getName ();
359361 }
@@ -619,7 +621,7 @@ private function applyCoversAnnotationFilter(array &$data, $linesToBeCovered, ar
619621 }
620622
621623 if ($ this ->checkForUnintentionallyCoveredCode &&
622- (!$ this ->currentId instanceof \PHPUnit_Framework_TestCase ||
624+ (!$ this ->currentId instanceof TestCase ||
623625 (!$ this ->currentId ->isMedium () && !$ this ->currentId ->isLarge ()))) {
624626 $ this ->performUnintentionallyCoveredCodeCheck (
625627 $ data ,
0 commit comments