File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -549,41 +549,6 @@ protected function addUncoveredFilesFromWhitelist()
549549 */
550550 protected function processUncoveredFileFromWhitelist ($ uncoveredFile , array &$ data , array $ uncoveredFiles )
551551 {
552- if ($ this ->cacheTokens ) {
553- $ tokens = PHP_Token_Stream_CachingFactory::get ($ uncoveredFile );
554- } else {
555- $ tokens = new PHP_Token_Stream ($ uncoveredFile );
556- }
557-
558- $ classes = $ tokens ->getClasses ();
559- $ interfaces = $ tokens ->getInterfaces ();
560- $ functions = $ tokens ->getFunctions ();
561- unset($ tokens );
562-
563- foreach (array_keys ($ classes ) as $ class ) {
564- if (class_exists ($ class , FALSE )) {
565- continue ;
566- }
567- }
568-
569- unset($ classes );
570-
571- foreach (array_keys ($ interfaces ) as $ interface ) {
572- if (interface_exists ($ interface , FALSE )) {
573- continue ;
574- }
575- }
576-
577- unset($ interfaces );
578-
579- foreach (array_keys ($ functions ) as $ function ) {
580- if (function_exists ($ function )) {
581- continue ;
582- }
583- }
584-
585- unset($ functions );
586-
587552 $ this ->driver ->start ();
588553 include_once $ uncoveredFile ;
589554 $ coverage = $ this ->driver ->stop ();
You can’t perform that action at this time.
0 commit comments