/** * 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); }
function test_widget_renders_html() { $this->expectOutputRegex(UTCW_TEST_HTML_REGEX); $widget = new UTCW_Widget(); $widget->widget(array(), array()); }