Changeset ca1d246
- Timestamp:
- 01/25/12 09:31:50 (4 months ago)
- Branches:
- master
- Children:
- 24fb7cd, 7ef3270
- Parents:
- 13fc574 (diff), 2f5dd85 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - git-author:
- Michiel Rook <mrook@…> (01/25/12 09:31:50)
- git-committer:
- Michiel Rook <mrook@…> (01/25/12 09:31:50)
- Location:
- classes/phing/tasks/ext
- Files:
-
- 5 edited
-
phpunit/BatchTest.php (modified) (2 diffs)
-
coverage/CoverageReportTask.php (modified) (1 diff)
-
coverage/CoverageReportTransformer.php (modified) (1 diff)
-
phk/PhkPackageTask.php (modified) (1 diff)
-
phpunit/PHPUnitReportTask.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
classes/phing/tasks/ext/phpunit/BatchTest.php
r61a14c5 r2f5dd85 200 200 foreach ($this->elements() as $test) 201 201 { 202 $testClass = new ReflectionClass($test); 202 $testClass = new $test(); 203 if (!($testClass instanceof PHPUnit_Framework_TestSuite)) 204 { 205 $testClass = new ReflectionClass($test); 206 } 203 207 204 208 $suite->addTestSuite($testClass); … … 215 219 { 216 220 foreach ($this->elements() as $element) { 217 $suite->addTestSuite(new ReflectionClass($element)); 221 $testClass = new $element(); 222 if (!($testClass instanceof PHPUnit_Framework_TestSuite)) 223 { 224 $testClass = new ReflectionClass($element); 225 } 226 $suite->addTestSuite($testClass); 218 227 } 219 228 } -
classes/phing/tasks/ext/coverage/CoverageReportTask.php
r42f77c6 r0483922 239 239 $html = $geshi->parse_code(); 240 240 241 $lines = split("<li>|</li>", $html);241 $lines = preg_split("#</?li>#", $html); 242 242 243 243 // skip first and last line -
classes/phing/tasks/ext/coverage/CoverageReportTransformer.php
r9afe919 r2eb9b25 108 108 109 109 $proc = new XSLTProcessor(); 110 if ( version_compare(PHP_VERSION,'5.4',"<"))110 if (defined('XSL_SECPREF_WRITE_FILE')) 111 111 { 112 ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 113 } 114 else 115 { 116 $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 112 if (version_compare(PHP_VERSION,'5.4',"<")) 113 { 114 ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 115 } 116 else 117 { 118 $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 119 } 117 120 } 118 121 -
classes/phing/tasks/ext/phk/PhkPackageTask.php
rf05a911 r0483922 225 225 */ 226 226 $output = trim(ob_get_clean()); 227 $output = split("\n", $output);227 $output = explode("\n", $output); 228 228 foreach ($output as $line) { 229 229 /* -
classes/phing/tasks/ext/phpunit/PHPUnitReportTask.php
r9afe919 r2eb9b25 150 150 151 151 $proc = new XSLTProcessor(); 152 if (version_compare(PHP_VERSION,'5.4',"<")) 153 { 154 ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 155 } 156 else 157 { 158 $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 152 if (defined('XSL_SECPREF_WRITE_FILE')) 153 { 154 if (version_compare(PHP_VERSION,'5.4',"<")) 155 { 156 ini_set("xsl.security_prefs", XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 157 } 158 else 159 { 160 $proc->setSecurityPrefs(XSL_SECPREF_WRITE_FILE | XSL_SECPREF_CREATE_DIRECTORY); 161 } 159 162 } 160 163
Note: See TracChangeset
for help on using the changeset viewer.
