@@ -78,6 +78,7 @@ class PHP_CodeCoverage_Filter
7878 public function __construct ()
7979 {
8080 $ functions = array (
81+ 'file_iterator_autoload ' ,
8182 'php_codecoverage_autoload ' ,
8283 'php_invoker_autoload ' ,
8384 'php_timer_autoload ' ,
@@ -96,24 +97,20 @@ public function __construct()
9697 }
9798 }
9899
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 ' ,
108- 'SymfonyComponents/YAML/sfYamlDumper.php '
100+ $ file = stream_resolve_include_path (
101+ 'SymfonyComponents/YAML/sfYaml.php '
109102 );
110103
111- foreach ($ files as $ file ) {
112- $ file = stream_resolve_include_path ($ file );
104+ if ($ file ) {
105+ $ this ->addFileToBlacklist ($ file );
106+ }
113107
114- if ($ file ) {
115- $ this ->addFileToBlacklist ($ file );
116- }
108+ $ file = stream_resolve_include_path (
109+ 'SymfonyComponents/YAML/sfYamlDumper.php '
110+ );
111+
112+ if ($ file ) {
113+ $ this ->addFileToBlacklist ($ file );
117114 }
118115 }
119116
0 commit comments