WordPress.org

Ready to get started?Download WordPress

Forums

wp-unit
Suggestion to remove some warning under WP_debug mode (1 post)

  1. roomshare
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags