Lines Matching refs:wanted
125 function generate_diff($wanted,$output) argument
127 $w = explode("\n", $wanted);
1421 $wanted = $section_text['EXPECTF'];
1423 $wanted = $section_text['EXPECTREGEX'];
1425 $wanted_re = preg_replace('/\r\n/',"\n",$wanted);
1502 $wanted='';
1507 $wanted .= trim($line[0]).': '.trim($line[1])."\n";
1527 $wanted = $section_text['EXPECT'];
1528 $wanted = preg_replace('/\r\n/',"\n",$wanted);
1529 $failed = (0 != strcmp($output,$wanted));
1549 $this->writemsg(generate_diff($wanted,$output)."\n");
1554 file_put_contents($logname,$wanted);
1566 file_put_contents($logname,generate_diff($wanted,$output));
1573 "\n---- EXPECTED OUTPUT\n$wanted\n".