Lines Matching refs:wanted
117 function generate_diff($wanted,$output) argument
119 $w = explode("\n", $wanted);
1409 $wanted = $section_text['EXPECTF'];
1411 $wanted = $section_text['EXPECTREGEX'];
1413 $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
1490 $wanted='';
1495 $wanted .= trim($line[0]).': '.trim($line[1])."\n";
1515 $wanted = $section_text['EXPECT'];
1516 $wanted = preg_replace('/\r\n/',"\n",$wanted);
1517 $failed = (0 != strcmp($output,$wanted));
1537 $this->writemsg(generate_diff($wanted,$output)."\n");
1542 file_put_contents($logname,$wanted);
1554 file_put_contents($logname,generate_diff($wanted,$output));
1561 "\n---- EXPECTED OUTPUT\n$wanted\n".