• I am trying wp-unit and noticed that when you turn on WP_DEBUG, which might be useful when you debug your testing plugin, you see few warning messages on wp-unit itself.

    arrange_results($failuresKeys,'failed');

    caused undefined variable warning so initialize it like,

    $faulresKeys = array()
    arrange_results($failuresKeys,'failed');
    if($_POST['Submit'] =='Run')

    caused another warning when method is get so how about this?

    if(array_key_exists('Submit', $_POST) &&
    			$_POST['Submit'] =='Run')

    Thanks

    http://wordpress.org/extend/plugins/wp-unit/

  • The topic ‘[Plugin: wp-unit] Suggestion to remove some warning under WP_debug mode’ is closed to new replies.