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]:\\\\)\S+ on line \d+/m', 'in %s on line %d', $out);
66 $out = preg_replace('/in (\/|[A-Z]:\\\\)\S+:\d+/m', 'in %s:%d', $out);
67 $out = preg_replace('/\{closure:(\/|[A-Z]:\\\\)\S+:\d+\}/', '{closure:%s:%d}', $out);
68 $out = preg_replace('/object\(([A-Za-z0-9]*)\)#\d+/', 'object($1)#%d', $out);
69 $out = preg_replace('/^#(\d+) (\/|[A-Z]:\\\\)\S+\(\d+\):/m', '#$1 %s(%d):', $out);
70 $out = preg_replace('/Resource id #\d+/', 'Resource id #%d', $out);
71 $out = preg_replace('/resource\(\d+\) of type/', 'resource(%d) of type', $out);
72 $out = preg_replace(
75 $out);
76 $out = preg_replace('/string\(\d+\) "([^"]*%d)/', 'string(%d) "$1', $out);
77 $out = str_replace("\0", '%0', $out);
78 return $out;
96 function generateMinimallyDifferingOutput(string $out, string $oldExpect) { argument
97 $outLines = explode("\n", $out);
118 function insertOutput(string $phpt, string $out): string { argument
119 return preg_replace_callback('/--EXPECTF?--.*?(--CLEAN--|$)/sD', function($matches) use($out) {
120 $hasWildcard = preg_match('/%[resSaAwidxfc0]/', $out);
122 return "--EXPECT$F--\n" . $out . "\n" . $matches[1];