WordPress.org

Make WordPress Core

Changeset 340 in tests


Ignore:
Timestamp:
03/22/2011 10:29:01 AM (7 years ago)
Author:
duck_
Message:

Sometimes you DO want to run all tests\!

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-test.php

    r307 r340  
    126126    }
    127127    // run the tests and print the results
    128     list ($result, $printer) = wptest_run_tests($classes, @$opts['t']);
     128    list ($result, $printer) = wptest_run_tests($classes, isset($opts['t']) ? $opts['t'] : array());
    129129    wptest_print_result($printer,$result);
    130130}
  • wp-testlib/base.php

    r339 r340  
    528528}
    529529
    530 function wptest_run_tests($classes, $classnames = '') {
     530function wptest_run_tests($classes, $classnames = array()) {
    531531    $suite = new PHPUnit_Framework_TestSuite();
    532532
    533     if ( !is_array($classnames) )
     533    if ( ! is_array($classnames) )
    534534        $classnames = array($classnames);
    535535
Note: See TracChangeset for help on using the changeset viewer.