@@ -78,7 +78,6 @@ class PHP_CodeCoverage_Filter
7878 public function __construct ()
7979 {
8080 $ functions = array (
81- 'file_iterator_autoload ' ,
8281 'php_codecoverage_autoload ' ,
8382 'php_invoker_autoload ' ,
8483 'php_timer_autoload ' ,
@@ -97,20 +96,24 @@ public function __construct()
9796 }
9897 }
9998
100- $ file = stream_resolve_include_path (
101- 'SymfonyComponents/YAML/sfYaml .php '
102- );
103-
104- if ( $ file ) {
105- $ this -> addFileToBlacklist ( $ file );
106- }
107-
108- $ file = stream_resolve_include_path (
99+ $ files = array (
100+ 'Symfony/Component/Finder/Finder .php ' ,
101+ ' Symfony/Component/Finder/Glob.php ' ,
102+ ' Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php ' ,
103+ ' Symfony/Component/Finder/Iterator/FilenameFilterIterator.php ' ,
104+ ' Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php ' ,
105+ ' Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php ' ,
106+ ' Symfony/Component/Finder/SplFileInfo.php ' ,
107+ ' SymfonyComponents/YAML/sfYaml.php ' ,
109108 'SymfonyComponents/YAML/sfYamlDumper.php '
110109 );
111110
112- if ($ file ) {
113- $ this ->addFileToBlacklist ($ file );
111+ foreach ($ files as $ file ) {
112+ $ file = stream_resolve_include_path ($ file );
113+
114+ if ($ file ) {
115+ $ this ->addFileToBlacklist ($ file );
116+ }
114117 }
115118 }
116119
0 commit comments