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 return $out;
92 function generateMinimallyDifferingOutput(string $out, string $oldExpect) { argument
93 $outLines = explode("\n", $out);
114 function insertOutput(string $phpt, string $out): string { argument
115 return preg_replace_callback('/--EXPECTF?--.*?(--CLEAN--|$)/sD', function($matches) use($out) {
116 $hasWildcard = preg_match('/%[resSaAwidxfc]/', $out);
118 return "--EXPECT$F--\n" . $out . "\n" . $matches[1];