Changeset 126
- Timestamp:
- 10/05/06 19:18:13 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/classes/phing/tasks/ext/coverage/CoverageSetupTask.php
r81 r126 84 84 85 85 /** 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. 89 87 * 90 88 * @return array an array of (basedir, filenames) pairs … … 103 101 foreach ($includedFiles as $file) 104 102 { 105 if (strstr($file, ".php")) 106 { 107 $fs = new PhingFile(realpath($ds->getBaseDir()), $file); 103 $fs = new PhingFile(realpath($ds->getBaseDir()), $file); 108 104 109 $files[] = array('key' => strtolower($fs->getAbsolutePath()), 'fullname' => $fs->getAbsolutePath()); 110 } 105 $files[] = array('key' => strtolower($fs->getAbsolutePath()), 'fullname' => $fs->getAbsolutePath()); 111 106 } 112 107 } trunk/classes/phing/tasks/ext/phpunit2/BatchTest.php
r116 r126 23 23 24 24 /** 25 * Scans a list of (.php)files given by the fileset attribute, extracts25 * Scans a list of files given by the fileset attribute, extracts 26 26 * all subclasses of PHPUnit2_Framework_TestCase. 27 27 * … … 106 106 107 107 /** 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. 110 109 * 111 110 * @return array an array of filenames … … 124 123 foreach ($files as $file) 125 124 { 126 if (strstr($file, ".php")) 127 { 128 $filenames[] = $ds->getBaseDir() . "/" . $file; 129 } 125 $filenames[] = $ds->getBaseDir() . "/" . $file; 130 126 } 131 127 } trunk/docs/phing_guide/book/chapters/appendixes/AppendixC-OptionalTasks.html
r123 r126 717 717 <p>Define a number of tests based on pattern matching. 718 718 <em>batchtest</em> collects the included files from any number of nested <fileset>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> 720 720 <h3>Attributes</h3> 721 721 <table>
