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);
1503 $wanted='';
1508 $wanted .= trim($line[0]).': '.trim($line[1])."\n";
1528 $wanted = $section_text['EXPECT'];
1529 $wanted = preg_replace('/\r\n/',"\n",$wanted);
1530 $failed = (0 != strcmp($output,$wanted));
1550 $this->writemsg(generate_diff($wanted,$output)."\n");
1555 file_put_contents($logname,$wanted);
1567 file_put_contents($logname,generate_diff($wanted,$output));
1574 "\n---- EXPECTED OUTPUT\n$wanted\n".