Lines Matching refs:wanted
125 function generate_diff($wanted,$output) argument
127 $w = explode("\n", $wanted);
1422 $wanted = $section_text['EXPECTF'];
1424 $wanted = $section_text['EXPECTREGEX'];
1426 $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
1450 $wanted='';
1455 $wanted .= trim($line[0]).': '.trim($line[1])."\n";
1475 $wanted = $section_text['EXPECT'];
1476 $wanted = preg_replace('/\r\n/',"\n",$wanted);
1477 $failed = (0 != strcmp($output,$wanted));
1497 $this->writemsg(generate_diff($wanted,$output)."\n");
1502 file_put_contents($logname,$wanted);
1514 file_put_contents($logname,generate_diff($wanted,$output));
1521 "\n---- EXPECTED OUTPUT\n$wanted\n".