File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,12 @@ public function start($determineUnusedAndDead = true)
47
47
phpdbg_start_oplog ();
48
48
}
49
49
50
+ private function getFiles () {
51
+ return array_filter (get_included_files (), function ($ value , $ key ) {
52
+ return strpos (dirname ($ value ), realpath (__DIR__ .'/../../../../../src ' )) !== false ;
53
+ }, ARRAY_FILTER_USE_BOTH );
54
+ }
55
+
50
56
/**
51
57
* Stop collection of code coverage information.
52
58
*
@@ -59,10 +65,10 @@ public function stop()
59
65
$ dbgData = phpdbg_end_oplog ();
60
66
61
67
if ($ fetchedLines == []) {
62
- $ sourceLines = phpdbg_get_executable ();
68
+ $ sourceLines = phpdbg_get_executable ([ ' files ' => $ this -> getFiles ()] );
63
69
} else {
64
70
$ newFiles = array_diff (
65
- get_included_files (),
71
+ $ this -> getFiles (),
66
72
array_keys ($ fetchedLines )
67
73
);
68
74
You can’t perform that action at this time.
0 commit comments