Browse files

Cleanup.

  • Loading branch information...
1 parent 3495e2e commit 39b25d3600fc94d5a3b36a289ae921045ba6ff14 @sebastianbergmann committed Dec 3, 2010
View
3 PHP/CodeCoverage/Autoload.php
@@ -78,3 +78,6 @@ function php_codecoverage_autoload($class) {
}
spl_autoload_register('php_codecoverage_autoload');
+
+require_once 'ezc/Base/base.php';
+spl_autoload_register(array('ezcBase', 'autoload'));
View
3 PHP/CodeCoverage/Autoload.php.in
@@ -66,3 +66,6 @@ function php_codecoverage_autoload($class) {
}
spl_autoload_register('php_codecoverage_autoload');
+
+require_once 'ezc/Base/base.php';
+spl_autoload_register(array('ezcBase', 'autoload'));
View
3 PHP/CodeCoverage/Report/HTML/Node.php
@@ -507,6 +507,3 @@ protected function setTemplateVars(Text_Template $template, $title, $charset, $g
*/
abstract public function render($target, $title, $charset = 'UTF-8', $lowUpperBound = 35, $highLowerBound = 70, $generator = '');
}
-
-require_once 'PHP/CodeCoverage/Report/HTML/Node/Directory.php';
-require_once 'PHP/CodeCoverage/Report/HTML/Node/File.php';
View
7 PHP/CodeCoverage/TextUI/Command.php
@@ -43,9 +43,6 @@
* @since File available since Release 1.0.0
*/
-require_once 'ezc/Base/base.php';
-spl_autoload_register(array('ezcBase', 'autoload'));
-
/**
* TextUI frontend for PHP_CodeCoverage.
*
@@ -222,15 +219,11 @@ public static function main()
}
if ($clover) {
- require 'PHP/CodeCoverage/Report/Clover.php';
-
$writer = new PHP_CodeCoverage_Report_Clover;
$writer->process($coverage, $clover);
}
if ($html) {
- require 'PHP/CodeCoverage/Report/HTML.php';
-
$writer = new PHP_CodeCoverage_Report_HTML;
$writer->process($coverage, $html);
}
View
2 scripts/auto_append.php
@@ -1,7 +1,5 @@
<?php
$coverage->stop();
-require 'PHP/CodeCoverage/Report/HTML.php';
-
$writer = new PHP_CodeCoverage_Report_HTML;
$writer->process($coverage, '/tmp/coverage');
View
2 scripts/auto_prepend.php
@@ -1,5 +1,5 @@
<?php
-require_once 'PHP/CodeCoverage.php';
+require_once 'PHP/CodeCoverage/Autoload.php';
$coverage = new PHP_CodeCoverage;
$filter = $coverage->filter();

0 comments on commit 39b25d3

Please sign in to comment.