Changeset 126

Show
Ignore:
Timestamp:
10/05/06 19:18:13 (2 years ago)
Author:
mrook
Message:

Remove obsolete filter for .php files

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/classes/phing/tasks/ext/coverage/CoverageSetupTask.php

    r81 r126  
    8484         
    8585        /** 
    86          * Iterate over all filesets and return the filename of all files 
    87          * that end with .php. This is to avoid loading an xml file 
    88          * for example. 
     86         * Iterate over all filesets and return the filename of all files. 
    8987         * 
    9088         * @return array an array of (basedir, filenames) pairs 
     
    103101                        foreach ($includedFiles as $file) 
    104102                        { 
    105                                 if (strstr($file, ".php")) 
    106                                 { 
    107                                         $fs = new PhingFile(realpath($ds->getBaseDir()), $file); 
     103                                $fs = new PhingFile(realpath($ds->getBaseDir()), $file); 
    108104                                         
    109                                         $files[] = array('key' => strtolower($fs->getAbsolutePath()), 'fullname' => $fs->getAbsolutePath()); 
    110                                 } 
     105                                $files[] = array('key' => strtolower($fs->getAbsolutePath()), 'fullname' => $fs->getAbsolutePath()); 
    111106                        } 
    112107                } 
  • trunk/classes/phing/tasks/ext/phpunit2/BatchTest.php

    r116 r126  
    2323 
    2424/** 
    25  * Scans a list of (.php) files given by the fileset attribute, extracts 
     25 * Scans a list of files given by the fileset attribute, extracts 
    2626 * all subclasses of PHPUnit2_Framework_TestCase. 
    2727 * 
     
    106106 
    107107        /** 
    108          * Iterate over all filesets and return the filename of all files 
    109          * that end with .php. 
     108         * Iterate over all filesets and return the filename of all files. 
    110109         * 
    111110         * @return array an array of filenames 
     
    124123                        foreach ($files as $file) 
    125124                        { 
    126                                 if (strstr($file, ".php")) 
    127                                 { 
    128                                         $filenames[] = $ds->getBaseDir() . "/" . $file; 
    129                                 } 
     125                                $filenames[] = $ds->getBaseDir() . "/" . $file; 
    130126                        } 
    131127                } 
  • trunk/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html

    r123 r126  
    717717        <p>Define a number of tests based on pattern matching. 
    718718        <em>batchtest</em> collects the included files from any number of nested &lt;fileset&gt;s. 
    719         It then generates a lists of classes that are (in)directly defined by each file that ends with .php</p> 
     719        It then generates a lists of classes that are (in)directly defined by each PHP file.</p> 
    720720        <h3>Attributes</h3> 
    721721        <table>