Lines Matching refs:out
22 $out = file_get_contents($outPath); variable
37 $out = generateMinimallyDifferingOutput($out, $oldExpect); variable
39 $out = normalizeOutput($out); variable
42 $phpt = insertOutput($phpt, $out);
64 function normalizeOutput(string $out): string { argument
65 $out = preg_replace('/in (\/|[A-Z]:\\\\).+ on line \d+$/m', 'in %s on line %d', $out);
66 $out = preg_replace('/in (\/|[A-Z]:\\\\).+:\d+$/m', 'in %s:%d', $out);
67 $out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\).+\(\d+\):/m', '#$1 %s(%d):', $out);
68 $out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
69 $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
70 $out = preg_replace(
73 $out);
74 $out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
75 $out = str_replace("\0", '%0', $out);
76 return $out;
94 function generateMinimallyDifferingOutput(string $out, string $oldExpect) { argument
95 $outLines = explode("\n", $out);
116 function insertOutput(string $phpt, string $out): string { argument
117 return preg_replace_callback('/--EXPECTF?--.*?(--CLEAN--|$)/sD', function($matches) use($out) {
118 $hasWildcard = preg_match('/%[resSaAwidxfc0]/', $out);
120 return "--EXPECT$F--\n" . $out . "\n" . $matches[1];