Changeset 341 in tests
- Timestamp:
- 03/22/2011 10:51:14 AM (15 years ago)
- File:
-
- 1 edited
-
wp-testlib/base.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-testlib/base.php
r340 r341 531 531 $suite = new PHPUnit_Framework_TestSuite(); 532 532 533 if ( ! is_array($classnames) ) 534 $classnames = array($classnames);533 if ( ! is_array($classnames) ) // For strings, Accept a comma separated list, or a space separated list. 534 $classnames = preg_split('![,\s]+!', $classnames); 535 535 536 536 $classnames = array_map('strtolower', $classnames); 537 $classnames = array_filter($classnames); //strip out any empty items 537 538 538 539 foreach ( $classes as $testcase ) { 539 if ( empty($classnames) || in_array( strtolower($testcase), $classnames) ) {540 if ( empty($classnames) || in_array( strtolower($testcase), $classnames ) ) { 540 541 $suite->addTestSuite($testcase); 541 542 }
Note: See TracChangeset
for help on using the changeset viewer.