File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Tests/PHP/CodeCoverage/Report Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,10 @@ protected function reducePaths(&$files)
229229 $ max = count ($ paths );
230230
231231 for ($ i = 0 ; $ i < $ max ; $ i ++) {
232+ // strip phar:// prefixes
233+ if (strpos ($ paths [$ i ], 'phar:// ' ) === 0 ) {
234+ $ paths [$ i ] = substr ($ paths [$ i ], 7 );
235+ }
232236 $ paths [$ i ] = explode (DIRECTORY_SEPARATOR , $ paths [$ i ]);
233237
234238 if (empty ($ paths [$ i ][0 ])) {
Original file line number Diff line number Diff line change @@ -245,7 +245,20 @@ public function reducePathsProvider()
245245 array (),
246246 '. ' ,
247247 array ()
248- )
248+ ),
249+ array (
250+ array (
251+ 'Money.php ' => array (),
252+ 'MoneyBag.php ' => array (),
253+ 'Cash.phar/Cash.php ' => array (),
254+ ),
255+ '/home/sb/Money ' ,
256+ array (
257+ '/home/sb/Money/Money.php ' => array (),
258+ '/home/sb/Money/MoneyBag.php ' => array (),
259+ 'phar:///home/sb/Money/Cash.phar/Cash.php ' => array (),
260+ ),
261+ ),
249262 );
250263 }
251264}
You can’t perform that action at this time.
0 commit comments