Changeset 312

Show
Ignore:
Timestamp:
11/17/07 03:47:40 (8 months ago)
Author:
hans
Message:

Refs #188 - Updating phpunit & coverage tasks to work w/ new namespaces.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/Project.php

    r307 r312  
    111111     */ 
    112112    function __construct() { 
    113         $this->fileUtils = new FileUtils(); 
    114113        $this->inputHandler = new phing::input::DefaultInputHandler(); 
    115114    } 
     
    441440        } 
    442441 
    443         $dir = $this->fileUtils->normalize($dir); 
     442        $dir = FileUtils::normalize($dir); 
    444443 
    445444        $dir = new File((string) $dir); 
     
    713712    function resolveFile($fileName, $rootDir = null) { 
    714713        if ($rootDir === null) { 
    715             return $this->fileUtils->resolveFile($this->basedir, $fileName); 
     714            return FileUtils::resolveFile($this->basedir, $fileName); 
    716715        } else { 
    717             return $this->fileUtils->resolveFile($rootDir, $fileName); 
     716            return FileUtils::resolveFile($rootDir, $fileName); 
    718717        } 
    719718    }     
  • trunk/classes/phing/parser/ProjectConfigurator.php

    r309 r312  
    213213        // requirements. 
    214214         
    215         $sb = preg_replace_callback('/\$\{([^}]+)\}/', array('phing::parser::ProjectConfigurator', 'replacePropertyCallback'), $value); 
     215        $sb = preg_replace_callback('/\$\{([^}]+)\}/', array( __NAMESPACE__ . '::ProjectConfigurator', 'replacePropertyCallback'), $value); 
    216216        return $sb;         
    217217    } 
  • trunk/classes/phing/system/io/File.php

    r311 r312  
    4747    private $prefixLength = 0; 
    4848 
    49     /** constructor */ 
     49    /** 
     50     * Create a new File object. 
     51     * Valid constructor signatures include: 
     52     *  File(File parent, string filename) 
     53     *  File(string filename) 
     54     *  File(string parent, string filename) 
     55         */ 
    5056    function __construct($arg1 = null, $arg2 = null) { 
    5157         
     
    5763 
    5864        /* simulate signature identified constructors */ 
    59         if ($arg1 instanceof PhingFile && is_string($arg2)) { 
     65        if ($arg1 instanceof File && is_string($arg2)) { 
    6066            $this->_constructFileParentStringChild($arg1, $arg2); 
    6167        } elseif (is_string($arg1) && ($arg2 === null)) { 
     
    193199            return null; 
    194200        } 
    195         return new PhingFile((string) $p, (int) $this->prefixLength); 
     201        return new File((string) $p, (int) $this->prefixLength); 
    196202    } 
    197203 
     
    253259     */ 
    254260    function getAbsoluteFile() { 
    255         return new PhingFile((string) $this->getAbsolutePath()); 
     261        return new File((string) $this->getAbsolutePath()); 
    256262    } 
    257263 
     
    291297     * getCanonicalPath(. 
    292298     * 
    293      * @return  PhingFile The canonical pathname string denoting the same file or 
     299     * @return  File The canonical pathname string denoting the same file or 
    294300     *          directory as this abstract pathname 
    295301     */ 
    296302    function getCanonicalFile() { 
    297         return new PhingFile($this->getCanonicalPath()); 
     303        return new File($this->getCanonicalPath()); 
    298304    } 
    299305 
     
    587593        $fs = array(); 
    588594        for ($i = 0; $i < $n; $i++) { 
    589             $fs[$i] = new PhingFile((string)$this->path, (string)$ss[$i]); 
     595            $fs[$i] = new File((string)$this->path, (string)$ss[$i]); 
    590596        } 
    591597        return $fs; 
     
    627633        $fs = FileSystem::getFileSystem(); 
    628634 
    629         if ($fs->checkAccess(new PhingFile($this->path), true) !== true) { 
     635        if ($fs->checkAccess(new File($this->path), true) !== true) { 
    630636            throw new IOException("No write access to " . $this->getPath()); 
    631637        } 
     
    639645     * @return  true if and only if the renaming succeeded; false otherwise 
    640646     */ 
    641     function renameTo(PhingFile $destFile) { 
     647    function renameTo(File $destFile) { 
    642648        $fs = FileSystem::getFileSystem(); 
    643649        if ($fs->checkAccess($this) !== true) { 
     
    649655    /** 
    650656     * Simple-copies file denoted by this abstract pathname into another 
    651      * PhingFile 
    652      * 
    653      * @param PhingFile $destFile  The new abstract pathname for the named file 
     657     * File 
     658     * 
     659     * @param File $destFile  The new abstract pathname for the named file 
    654660     * @return true if and only if the renaming succeeded; false otherwise 
    655661     */ 
    656     function copyTo(PhingFile $destFile) { 
     662    function copyTo(File $destFile) { 
    657663        $fs = FileSystem::getFileSystem(); 
    658664 
     
    745751     * disconnecting or unmounting of physical or virtual disk drives. 
    746752     * 
    747      * This method returns an array of PhingFile objects that 
     753     * This method returns an array of File objects that 
    748754     * denote the root directories of the available filesystem roots.  It is 
    749755     * guaranteed that the canonical pathname of any file physically present on 
     
    756762     * pathname of a remote file is syntactically indistinguishable from the 
    757763     * pathname of a local file then it will begin with one of the roots 
    758      * returned by this method.  Thus, for example, PhingFile objects 
     764     * returned by this method.  Thus, for example, File objects 
    759765     * denoting the root directories of the mapped network drives of a Windows 
    760      * platform will be returned by this method, while PhingFile 
     766     * platform will be returned by this method, while File 
    761767     * objects containing UNC pathnames will not be returned by this method. 
    762768     * 
    763      * @return  An array of PhingFile objects denoting the available 
     769     * @return  An array of File objects denoting the available 
    764770     *          filesystem roots, or null if the set of roots 
    765771     *          could not be determined.  The array will be empty if there are 
     
    783789     * Static method that creates a unique filename whose name begins with 
    784790     * $prefix and ends with $suffix in the directory $directory. $directory 
    785      * is a reference to a PhingFile Object. 
     791     * is a reference to a File Object. 
    786792     * Then, the file is locked for exclusive reading/writing. 
    787793     * 
     
    790796     * @access      public 
    791797     */ 
    792     function createTempFile($prefix, $suffix, PhingFile $directory) { 
     798    function createTempFile($prefix, $suffix, File $directory) { 
    793799         
    794800        // quick but efficient hack to create a unique filename ;-) 
    795801        $result = null; 
    796802        do { 
    797             $result = new PhingFile($directory, $prefix . substr(md5(time()), 0, 8) . $suffix); 
     803            $result = new File($directory, $prefix . substr(md5(time()), 0, 8) . $suffix); 
    798804        } while (file_exists($result->getPath())); 
    799805 
     
    827833     * systems it is not. 
    828834     * 
    829      * @param PhingFile $file Th file whose pathname sould be compared to the pathname of this file. 
     835     * @param File $file Th file whose pathname sould be compared to the pathname of this file. 
    830836     * 
    831837     * @return int Zero if the argument is equal to this abstract pathname, a 
     
    835841     *        greater than the argument 
    836842     */ 
    837     function compareTo(PhingFile $file) { 
     843    function compareTo(File $file) { 
    838844        $fs = FileSystem::getFileSystem(); 
    839845        return $fs->compare($this, $file); 
     
    851857     */ 
    852858    function equals($obj) { 
    853         if (($obj !== null) && ($obj instanceof PhingFile)) { 
     859        if (($obj !== null) && ($obj instanceof File)) { 
    854860            return ($this->compareTo($obj) === 0); 
    855861        } 
  • trunk/classes/phing/system/util/Properties.php

    r309 r312  
    2424use phing::BuildException; 
    2525use phing::system::io::File; 
     26use phing::system::io::FileWriter; 
    2627 
    2728/** 
  • trunk/classes/phing/tasks/ext/ExtractBaseTask.php

    r310 r312  
    2424use phing::Project; 
    2525use phing::sytem::io::File; 
     26use phing::types::FileSet; 
    2627 
    2728/** 
  • trunk/classes/phing/tasks/ext/JslLintTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::types::FileSet; 
    2728 
    2829/** 
  • trunk/classes/phing/tasks/ext/PearPackageTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::types::FileSet; 
    2728 
    2829/** 
  • trunk/classes/phing/tasks/ext/PhpLintTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::types::FileSet; 
    2728 
    2829/** 
  • trunk/classes/phing/tasks/ext/XmlLintTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::types::FileSet; 
    2728 
    2829/** 
  • trunk/classes/phing/tasks/ext/ZendCodeAnalyzerTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::sytem::io::File; 
     27use phing::types::FileSet; 
    2728 
    2829/** 
  • trunk/classes/phing/tasks/ext/coverage/CoverageMerger.php

    r309 r312  
    2222namespace phing::tasks::ext::coverage; 
    2323use phing::BuildException; 
     24use phing::system::io::File; 
     25use phing::system::util::Properties; 
    2426 
    2527/** 
  • trunk/classes/phing/tasks/ext/coverage/CoverageMergerTask.php

    r309 r312  
    2424use phing::Task; 
    2525use phing::Project; 
     26use phing::types::FileSet; 
    2627 
    2728/** 
  • trunk/classes/phing/tasks/ext/coverage/CoverageReportTask.php

    r310 r312  
    2525use phing::Project; 
    2626use phing::types::Path; 
     27use phing::types::FileSet; 
     28use phing::system::io::File; 
     29use phing::system::util::Properties; 
     30use phing::tasks::ext::phpunit::PHPUnitUtil; 
    2731 
    2832/** 
  • trunk/classes/phing/tasks/ext/coverage/CoverageReportTransformer.php

    r309 r312  
    2121 
    2222namespace phing::tasks::ext::coverage; 
     23use phing::Phing; 
     24use phing::Task; 
     25use phing::types::Path; 
    2326use phing::BuildException; 
     27use phing::system::io::File; 
     28use phing::util::ExtendedFileStream; 
    2429 
    2530/** 
  • trunk/classes/phing/tasks/ext/coverage/CoverageSetupTask.php

    r310 r312  
    2121 
    2222namespace phing::tasks::ext::coverage; 
     23use phing::Phing; 
    2324use phing::BuildException; 
    2425use phing::Task; 
    2526use phing::Project; 
    2627use phing::types::Path; 
     28use phing::types::FileSet; 
     29use phing::system::io::File; 
     30use phing::system::util::Properties; 
    2731 
    2832/** 
  • trunk/classes/phing/tasks/ext/phpunit/BatchTest.php

    r310 r312  
    2121 
    2222namespace phing::tasks::ext::phpunit; 
     23use phing::Project; 
    2324use phing::BuildException; 
    2425use phing::types::Path; 
     26use phing::types::FileSet; 
    2527 
    2628/** 
  • trunk/classes/phing/tasks/ext/phpunit/FormatterElement.php

    r309 r312  
    2222namespace phing::tasks::ext::phpunit; 
    2323use phing::BuildException; 
    24  
     24use phing::system::io::File; 
     25use phing::tasks::ext::phpunit::phpunit3; 
     26use phing::tasks::ext::phpunit::phpunit2; 
    2527/** 
    2628 * A wrapper for the implementations of PHPUnit2ResultFormatter. 
     
    5254                        { 
    5355                                 
    54                                 $this->formatter = new SummaryPHPUnit3ResultFormatter(); 
     56                                $this->formatter = new phpunit3::SummaryResultFormatter(); 
    5557                        } 
    5658                        else                     
    5759                        { 
    5860                                 
    59                                 $this->formatter = new SummaryPHPUnit2ResultFormatter(); 
     61                                $this->formatter = new phpunit2::SummaryResultFormatter(); 
    6062                        } 
    6163                } 
     
    6870                        { 
    6971                                 
    70                                 $this->formatter = new XMLPHPUnit3ResultFormatter(); 
     72                                $this->formatter = new phpunit3::XMLResultFormatter(); 
    7173                        } 
    7274                        else 
    7375                        { 
    7476                                 
    75                                 $this->formatter = new XMLPHPUnit2ResultFormatter(); 
     77                                $this->formatter = new phpunit2::XMLResultFormatter(); 
    7678                        } 
    7779                } 
     
    8284                        { 
    8385                                 
    84                                 $this->formatter = new PlainPHPUnit3ResultFormatter(); 
     86                                $this->formatter = new phpunit3::PlainResultFormatter(); 
    8587                        } 
    8688                        else 
    8789                        { 
    8890                                 
    89                                 $this->formatter = new PlainPHPUnit2ResultFormatter(); 
     91                                $this->formatter = new phpunit2::PlainResultFormatter(); 
    9092                        } 
    9193                } 
  • trunk/classes/phing/tasks/ext/phpunit/PHPUnitReportTask.php

    r309 r312  
    2121 
    2222namespace phing::tasks::ext::phpunit; 
     23use phing::Phing; 
    2324use phing::BuildException; 
    2425use phing::Task; 
    2526use phing::Project; 
     27use phing::types::FileSet; 
     28use phing::system::io::File; 
     29use phing::system::io::FileWriter; 
    2630 
    2731/** 
  • trunk/classes/phing/tasks/ext/phpunit/PHPUnitTask.php

    r311 r312  
    2626use phing::io::Writer; 
    2727use phing::util::LogWriter; 
     28use phing::system::io::File; 
     29use phing::system::io::FileWriter; 
    2830 
    2931/** 
     
    6971                if (class_exists('PHPUnit_Runner_Version', false)) 
    7072                {  
    71                         $version = PHPUnit_Runner_Version::id(); 
     73                        $version = ::PHPUnit_Runner_Version::id(); 
    7274                } 
    7375                elseif (class_exists('PHPUnit2_Runner_Version', false)) 
    7476                { 
    75                         $version = PHPUnit2_Runner_Version::id(); 
     77                        $version = ::PHPUnit2_Runner_Version::id(); 
    7678                } 
    7779                else 
     
    112114                        } 
    113115                         
    114                         PHPUnit_Util_Filter::addFileToFilter('PHPUnitTask.php', 'PHING'); 
    115                         PHPUnit_Util_Filter::addFileToFilter('PHPUnitTestRunner.php', 'PHING'); 
    116                         PHPUnit_Util_Filter::addFileToFilter('phing/Task.php', 'PHING'); 
    117                         PHPUnit_Util_Filter::addFileToFilter('phing/Target.php', 'PHING'); 
    118                         PHPUnit_Util_Filter::addFileToFilter('phing/Project.php', 'PHING'); 
    119                         PHPUnit_Util_Filter::addFileToFilter('phing/Phing.php', 'PHING'); 
    120                         PHPUnit_Util_Filter::addFileToFilter('phing.php', 'PHING'); 
     116                        ::PHPUnit_Util_Filter::addFileToFilter('PHPUnitTask.php', 'PHING'); 
     117                        ::PHPUnit_Util_Filter::addFileToFilter('PHPUnitTestRunner.php', 'PHING'); 
     118                        ::PHPUnit_Util_Filter::addFileToFilter('phing/Task.php', 'PHING'); 
     119                        ::PHPUnit_Util_Filter::addFileToFilter('phing/Target.php', 'PHING'); 
     120                        ::PHPUnit_Util_Filter::addFileToFilter('phing/Project.php', 'PHING'); 
     121                        ::PHPUnit_Util_Filter::addFileToFilter('phing/Phing.php', 'PHING'); 
     122                        ::PHPUnit_Util_Filter::addFileToFilter('phing.php', 'PHING'); 
    121123                } 
    122124                else 
     
    124126                        require_once 'PHPUnit2/Util/Filter.php'; 
    125127                         
    126                         PHPUnit2_Util_Filter::addFileToFilter('PHPUnitTask.php'); 
    127                         PHPUnit2_Util_Filter::addFileToFilter('PHPUnitTestRunner.php'); 
    128                         PHPUnit2_Util_Filter::addFileToFilter('phing/Task.php'); 
    129                         PHPUnit2_Util_Filter::addFileToFilter('phing/Target.php'); 
    130                         PHPUnit2_Util_Filter::addFileToFilter('phing/Project.php'); 
    131                         PHPUnit2_Util_Filter::addFileToFilter('phing/Phing.php'); 
    132                         PHPUnit2_Util_Filter::addFileToFilter('phing.php'); 
     128                        ::PHPUnit2_Util_Filter::addFileToFilter('PHPUnitTask.php'); 
     129                        ::PHPUnit2_Util_Filter::addFileToFilter('PHPUnitTestRunner.php'); 
     130                        ::PHPUnit2_Util_Filter::addFileToFilter('phing/Task.php'); 
     131                        ::PHPUnit2_Util_Filter::addFileToFilter('phing/Target.php'); 
     132                        ::PHPUnit2_Util_Filter::addFileToFilter('phing/Project.php'); 
     133                        ::PHPUnit2_Util_Filter::addFileToFilter('phing/Phing.php'); 
     134                        ::PHPUnit2_Util_Filter::addFileToFilter('phing.php'); 
    133135                } 
    134136        } 
     
    251253                        $suite = NULL; 
    252254                         
    253                         if (is_subclass_of($test, 'PHPUnit_Framework_TestSuite') || is_subclass_of($test, 'PHPUnit2_Framework_TestSuite')) 
     255                        if (is_subclass_of($test, '::PHPUnit_Framework_TestSuite') || is_subclass_of($test, '::PHPUnit2_Framework_TestSuite')) 
    254256                        { 
    255257                                if (is_object($test)) 
     
    267269                                { 
    268270                                        require_once 'PHPUnit/Framework/TestSuite.php'; 
    269                                         $suite = new PHPUnit_Framework_TestSuite(new ReflectionClass($test)); 
     271                                        $suite = new ::PHPUnit_Framework_TestSuite(new ReflectionClass($test)); 
    270272                                } 
    271273                                else 
    272274                                { 
    273275                                        require_once 'PHPUnit2/Framework/TestSuite.php'; 
    274                                         $suite = new PHPUnit2_Framework_TestSuite(new ReflectionClass($test)); 
     276                                        $suite = new ::PHPUnit2_Framework_TestSuite(new ReflectionClass($test)); 
    275277                                } 
    276278                        } 
  • trunk/classes/phing/tasks/ext/phpunit/PHPUnitTestRunner.php

    r309 r312  
    2222namespace phing::tasks::ext::phpunit; 
    2323use phing::BuildException; 
     24use phing::Project; 
     25use phing::tasks::ext::coverage::CoverageMerger; 
    2426 
    2527/** 
     
    7577                { 
    7678                        require_once 'PHPUnit/Framework/TestSuite.php';                  
    77                         $res = new PHPUnit_Framework_TestResult(); 
     79                        $res = new ::PHPUnit_Framework_TestResult(); 
    7880                } 
    7981                else 
    8082                { 
    8183                        require_once 'PHPUnit2/Framework/TestSuite.php'; 
    82                         $res = new PHPUnit2_Framework_TestResult(); 
     84                        $res = new ::PHPUnit2_Framework_TestResult(); 
    8385                } 
    8486 
  • trunk/classes/phing/tasks/ext/phpunit/PHPUnitUtil.php

    r309 r312  
    2222namespace phing::tasks::ext::phpunit; 
    2323use phing::BuildException; 
     24use phing::Phing; 
    2425 
    2526/** 
  • trunk/classes/phing/tasks/ext/phpunit/phpunit2/PlainResultFormatter.php

    r309 r312  
    3434 * @since 2.1.0 
    3535 */ 
    36 class PlainPHPUnit2ResultFormatter extends PHPUnit2ResultFormatter 
     36class PlainResultFormatter extends ResultFormatter 
    3737{ 
    3838        private $inner = ""; 
     
    4848        } 
    4949 
    50         function startTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     50        function startTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    5151        { 
    5252                parent::startTestSuite($suite); 
     
    5555        } 
    5656         
    57         function endTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     57        function endTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    5858        { 
    5959                parent::endTestSuite($suite); 
     
    7373        } 
    7474 
    75         function addError(PHPUnit2_Framework_Test $test, Exception $e) 
     75        function addError(::PHPUnit2_Framework_Test $test, Exception $e) 
    7676        { 
    7777                parent::addError($test, $e); 
     
    8080        } 
    8181 
    82         function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $t) 
     82        function addFailure(::PHPUnit2_Framework_Test $test, ::PHPUnit2_Framework_AssertionFailedError $t) 
    8383        { 
    8484                parent::addFailure($test, $t); 
     
    8787        } 
    8888 
    89         function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e) 
     89        function addIncompleteTest(::PHPUnit2_Framework_Test $test, Exception $e) 
    9090        { 
    9191                parent::addIncompleteTest($test, $e); 
     
    9494        } 
    9595 
    96         private function formatError($type, PHPUnit2_Framework_Test $test, Exception $e) 
     96        private function formatError($type, ::PHPUnit2_Framework_Test $test, Exception $e) 
    9797        { 
    9898                if ($test != null) 
     
    103103                $this->inner.= $test->getName() . " " . $type . "\n"; 
    104104                $this->inner.= $e->getMessage() . "\n"; 
    105                 $this->inner.= PHPUnit2_Util_Filter::getFilteredStackTrace($e) . "\n"; 
     105                $this->inner.= ::PHPUnit2_Util_Filter::getFilteredStackTrace($e) . "\n"; 
    106106        } 
    107107         
  • trunk/classes/phing/tasks/ext/phpunit/phpunit2/ResultFormatter.php

    r309 r312  
    2222namespace phing::tasks::ext::phpunit::phpunit2; 
    2323use phing::BuildException; 
     24use phing::Project; 
     25use phing::system::io::Writer; 
     26 
    2427require_once 'PHPUnit2/Framework/TestListener.php'; 
    2528 
     
    3437 * @since 2.1.0 
    3538 */ 
    36 abstract class PHPUnit2ResultFormatter implements PHPUnit2_Framework_TestListener 
     39abstract class ResultFormatter implements ::PHPUnit2_Framework_TestListener 
    3740{ 
    3841        protected $out = NULL; 
     
    8992        } 
    9093         
    91         function startTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     94        function startTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    9295        { 
    9396                $this->runCount = 0; 
     
    99102        } 
    100103         
    101         function endTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     104        function endTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    102105        { 
    103106                $this->timer->stop(); 
    104107        } 
    105108 
    106         function startTest(PHPUnit2_Framework_Test $test) 
     109        function startTest(::PHPUnit2_Framework_Test $test) 
    107110        { 
    108111                $this->runCount++; 
    109112        } 
    110113 
    111         function endTest(PHPUnit2_Framework_Test $test) 
     114        function endTest(::PHPUnit2_Framework_Test $test) 
    112115        { 
    113116        } 
    114117 
    115         function addError(PHPUnit2_Framework_Test $test, Exception $e) 
     118        function addError(::PHPUnit2_Framework_Test $test, Exception $e) 
    116119        { 
    117120                $this->errorCount++; 
    118121        } 
    119122 
    120         function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $t) 
     123        function addFailure(::PHPUnit2_Framework_Test $test, ::PHPUnit2_Framework_AssertionFailedError $t) 
    121124        { 
    122125                $this->failureCount++; 
    123126        } 
    124127 
    125         function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e) 
     128        function addIncompleteTest(::PHPUnit2_Framework_Test $test, Exception $e) 
    126129        { 
    127130        } 
    128131 
    129         function addSkippedTest(PHPUnit2_Framework_Test $test, Exception $e) 
     132        function addSkippedTest(::PHPUnit2_Framework_Test $test, Exception $e) 
    130133        { 
    131134        } 
  • trunk/classes/phing/tasks/ext/phpunit/phpunit2/SummaryResultFormatter.php

    r309 r312  
    3232 * @since 2.1.0 
    3333 */      
    34 class SummaryPHPUnit2ResultFormatter extends PHPUnit2ResultFormatter 
     34class SummaryResultFormatter extends ResultFormatter 
    3535{ 
    3636        function endTestSuite(PHPUnit2_Framework_TestSuite $suite) 
  • trunk/classes/phing/tasks/ext/phpunit/phpunit2/XMLResultFormatter.php

    r309 r312  
    3535 * @since 2.1.0 
    3636 */ 
    37 class XMLPHPUnit2ResultFormatter extends PHPUnit2ResultFormatter 
     37class XMLResultFormatter extends ResultFormatter 
    3838{ 
    3939        private $logger = NULL; 
     
    4141        function __construct() 
    4242        { 
    43                 $this->logger = new PHPUnit2_Util_Log_XML(); 
     43                $this->logger = new ::PHPUnit2_Util_Log_XML(); 
    4444                $this->logger->setWriteDocument(false); 
    4545        } 
     
    5555        } 
    5656         
    57         function startTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     57        function startTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    5858        { 
    5959                parent::startTestSuite($suite); 
     
    6262        } 
    6363         
    64         function endTestSuite(PHPUnit2_Framework_TestSuite $suite) 
     64        function endTestSuite(::PHPUnit2_Framework_TestSuite $suite) 
    6565        { 
    6666                parent::endTestSuite($suite); 
     
    6969        } 
    7070         
    71         function startTest(PHPUnit2_Framework_Test $test) 
     71        function startTest(::PHPUnit2_Framework_Test $test) 
    7272        { 
    7373                parent::startTest($test); 
     
    7676        } 
    7777 
    78         function endTest(PHPUnit2_Framework_Test $test) 
     78        function endTest(::PHPUnit2_Framework_Test $test) 
    7979        { 
    8080                parent::endTest($test); 
     
    8383        } 
    8484         
    85         function addError(PHPUnit2_Framework_Test $test, Exception $e) 
     85        function addError(::PHPUnit2_Framework_Test $test, Exception $e) 
    8686        { 
    8787                parent::addError($test, $e); 
     
    9090        } 
    9191 
    92         function addFailure(PHPUnit2_Framework_Test $test, PHPUnit2_Framework_AssertionFailedError $t) 
     92        function addFailure(::PHPUnit2_Framework_Test $test, ::PHPUnit2_Framework_AssertionFailedError $t) 
    9393        { 
    9494                parent::addFailure($test, $t); 
     
    9797        } 
    9898 
    99         function addIncompleteTest(PHPUnit2_Framework_Test $test, Exception $e) 
     99        function addIncompleteTest(::PHPUnit2_Framework_Test $test, Exception $e) 
    100100        { 
    101101                parent::addIncompleteTest($test, $e); 
  • trunk/classes/phing/tasks/ext/phpunit/phpunit3/PlainResultFormatter.php

    r309 r312  
    3131 * @since 2.1.0 
    3232 */ 
    33 class PlainPHPUnit3ResultFormatter extends PHPUnit3ResultFormatter 
     33class PlainResultFormatter extends ResultFormatter 
    3434{ 
    3535        private $inner = ""; 
     
    4545        } 
    4646 
    47         function startTestSuite(PHPUnit_Framework_TestSuite $suite) 
     47        function startTestSuite(::PHPUnit_Framework_TestSuite $suite) 
    4848        { 
    4949                parent::startTestSuite($suite); 
     
    5252        } 
    5353         
    54         function endTestSuite(PHPUnit_Framework_TestSuite $suite) 
     54        function endTestSuite(::PHPUnit_Framework_TestSuite $suite) 
    5555        { 
    5656    &nbs