Changeset 2f5dd85
- Timestamp:
- 01/20/12 21:56:12 (4 months ago)
- Branches:
- master
- Children:
- 4870cff
- Parents:
- f3e60a4
- git-author:
- Bryan Davis <bpd@…> (01/20/12 21:56:12)
- git-committer:
- Bryan Davis <bpd@…> (01/20/12 21:56:12)
- File:
-
- 1 edited
-
classes/phing/tasks/ext/phpunit/BatchTest.php (modified) (2 diffs)
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 }
Note: See TracChangeset
for help on using the changeset viewer.
