@@ -319,16 +319,9 @@ public function append(array $data, $id = NULL)
319319 * Merges the data from another instance of PHP_CodeCoverage.
320320 *
321321 * @param PHP_CodeCoverage $that
322- * @param boolean $matchPaths
323322 */
324- public function merge (PHP_CodeCoverage $ that, $ matchPaths = FALSE )
323+ public function merge (PHP_CodeCoverage $ that )
325324 {
326- if ($ matchPaths ) {
327- $ thatData = $ this ->matchPaths ($ that ->checksums , $ that ->data );
328- } else {
329- $ thatData = $ that ->data ;
330- }
331-
332325 foreach ($ that ->data as $ file => $ lines ) {
333326 if (!isset ($ this ->data [$ file ])) {
334327 if (!$ this ->filter ->isFiltered ($ file )) {
@@ -561,37 +554,4 @@ protected function processUncoveredFilesFromWhitelist()
561554
562555 $ this ->append ($ data , 'UNCOVERED_FILES_FROM_WHITELIST ' );
563556 }
564-
565- /**
566- * @param array $checksums
567- * @param array $data
568- * @return array
569- * @since Method available since Release 1.1.0
570- */
571- protected function matchPaths (array $ checksums , array $ data )
572- {
573- $ coverageWithLocalPaths = array ();
574-
575- foreach ($ data as $ originalRemotePath => $ coverage ) {
576- $ remotePath = $ originalRemotePath ;
577-
578- if (strpos ($ path , '/ ' ) !== FALSE ) {
579- $ separator = '/ ' ;
580- } else {
581- $ separator = '\\' ;
582- }
583-
584- while (!($ localPath = PHPUnit_Util_Filesystem::fileExistsInIncludePath ($ remotePath )) &&
585- strpos ($ remotePath , $ separator ) !== FALSE ) {
586- $ remotePath = substr ($ remotePath , strpos ($ remotePath , $ separator ) + 1 );
587- }
588-
589- if ($ localPath &&
590- sha1_file ($ localPath ) == $ checksums [$ originalRemotePath ]) {
591- $ coverageWithLocalPaths [$ localPath ] = $ coverage ;
592- }
593- }
594-
595- return $ coverageWithLocalPaths ;
596- }
597557}
0 commit comments