Skip to content

Commit

Permalink
Leftover.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 5, 2012
1 parent 2eb4122 commit ffda511
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions PHP/CodeCoverage/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class PHP_CodeCoverage_Filter
public function __construct()
{
$functions = array(
'file_iterator_autoload',
'php_codecoverage_autoload',
'php_invoker_autoload',
'php_timer_autoload',
Expand All @@ -97,20 +96,24 @@ public function __construct()
}
}

$file = stream_resolve_include_path(
'SymfonyComponents/YAML/sfYaml.php'
);

if ($file) {
$this->addFileToBlacklist($file);
}

$file = stream_resolve_include_path(
$files = array(
'Symfony/Component/Finder/Finder.php',
'Symfony/Component/Finder/Glob.php',
'Symfony/Component/Finder/Iterator/FileTypeFilterIterator.php',
'Symfony/Component/Finder/Iterator/FilenameFilterIterator.php',
'Symfony/Component/Finder/Iterator/RecursiveDirectoryIterator.php',
'Symfony/Component/Finder/Iterator/ExcludeDirectoryFilterIterator.php',
'Symfony/Component/Finder/SplFileInfo.php',
'SymfonyComponents/YAML/sfYaml.php',
'SymfonyComponents/YAML/sfYamlDumper.php'
);

if ($file) {
$this->addFileToBlacklist($file);
foreach ($files as $file) {
$file = stream_resolve_include_path($file);

if ($file) {
$this->addFileToBlacklist($file);
}
}
}

Expand Down

0 comments on commit ffda511

Please sign in to comment.