Exemplo n.º 1
0
 /**
  * When $args and $instance is merged, make sure that the $args values have precedence,
  * otherwise $instance might overwrite before_widget, after_widget, etc
  */
 function test_merge_args_instance_order()
 {
     $widget = new UTCW_Widget();
     $args = array('before_widget' => 'Hello World');
     $instance = array('before_widget' => 'Goodbye World');
     $this->expectOutputRegex('/Hello World/');
     $widget->widget($args, $instance);
 }
Exemplo n.º 2
0
 function test_widget_renders_html()
 {
     $this->expectOutputRegex(UTCW_TEST_HTML_REGEX);
     $widget = new UTCW_Widget();
     $widget->widget(array(), array());
 }