{ $cmd = preg_replace("/[\"&;]/", "", $cmd); exec("./todo.sh -f -p {$cmd}", $out); $out = implode("<br>", $out); return $out; } function style($desc) { $desc = preg_replace("/([0-9]{1,3} x [\\w -]*)/", "<span class=\"rm\">\${1}</span>", $desc); $desc = preg_replace("/([0-9]{1,3} \\(([A-Z])\\)( [\\w -]*|))/", "<span class=\"prio-\${2}\">\${1}</span>", $desc); $desc = preg_replace("/ ([@][\\w:]+)/", " <span class=\"context\">\${1}</span>", $desc); $desc = preg_replace("/ ([\\+][\\w:]+)/", " <span class=\"project\">\${1}</span>", $desc); return $desc; } if ($cmd != "") { $out = todo($cmd); if ($isAjax) { echo style($out); return; } } else { if ($isAjax) { return; } } $self = "index.php"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html dir="ltr" lang="en-US">
<div class="gallery-expander container-fluid"> <div class="back"> <div class="gallery-expander-contents container"> <div class="gallery-trigger-close close"><i class="fa-times"></i></div> <div class="col"> <?php todo(); ?> <?php /** * woocommerce_before_shop_loop_item_title hook * * @hooked woocommerce_show_product_loop_sale_flash - 10 * @hooked woocommerce_template_loop_product_thumbnail - 10 */
is_deeply($struct_1, $struct_2, 'is_deeply()'); check_capture(false); todo_begin("Testing"); fail("example unimplemented todo test"); check_capture(false); todo_end(); // in 5.3 we would pass an anonymous function function ex_todo_fail() { fail("example fail in subroutine"); } todo( "Testing", "ex_todo_fail" ); check_capture(false); $GLOBALS['_no_plan'] = false; $GLOBALS['_num_failures'] = 0; if ($GLOBALS['_meta_failures']){ $GLOBALS['_meta_tests']--; echo "# Looks like you failed {$GLOBALS['_meta_failures']} tests of {$GLOBALS['_meta_tests']}.\n"; } function start_capture(){ $GLOBALS['_meta_tests'] = 1; $GLOBALS['_meta_failures'] = 0;