Lines Matching refs:section_text
1053 function getINISettings(&$section_text) argument
1058 if (array_key_exists('INI', $section_text)) {
1059 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1064 function getINIParams(&$section_text) argument
1066 if (!$section_text) return '';
1071 $ini = $this->getINISettings($section_text);
1106 function getENVSettings(&$section_text,$testfile) argument
1111 if (array_key_exists('ENV', $section_text)) {
1112 $sect = $this->evalSettings($testfile,$section_text['ENV']);
1119 function getEvalTestSettings($section_text,$testfile) argument
1124 if ($section_text) {
1125 $sect = $this->evalSettings($testfile,$section_text);
1138 $section_text = array(
1156 $section_text[$section] = '';
1161 $section_text[$section] .= $line;
1164 foreach ($section_text as $k=>$v) {
1167 $section_text[$k]=$matches[1];
1169 $section_text[$k]=trim($v);
1172 return $section_text;
1178 function getSkipReason($file,&$section_text,$docgi=false) argument
1183 $this->showstatus($section_text['TEST'], 'SKIPPED', 'CGI Test needs CGI Binary');
1190 isset($section_text['INI']) && $section_text['INI']) {
1191 $settings = $this->getINISettings($section_text);
1202 …$this->showstatus($section_text['TEST'], 'SKIPPED', "Test requires ini setting $k=[$v], not [".($h…
1208 if ($section_text['SKIPIF']) {
1209 …$output = trim($this->runscript($section_text['SKIPIF'],$this->test_executable_iscgi,realpath(dirn…
1216 $this->showstatus($section_text['TEST'], 'SKIPPED', $reason);
1237 $section_text = $this->getSectionText($file);
1243 $tested = $section_text['TEST']." [$shortname]";
1262 $env = $this->getENVSettings($section_text,$tmp_file);
1263 $ini_overwrites = $this->getINIParams($section_text);
1268 $havepost = array_key_exists('POST', $section_text) && !empty($section_text['POST']);
1270 $haveget = array_key_exists('GET', $section_text) && !empty($section_text['GET']);
1271 $do_cgi = array_key_exists('CGI', $section_text) || $haveget || $havepost;
1273 $skipreason = $this->getSkipReason($file,$section_text,$do_cgi);
1279 file_put_contents($tmp_file,$section_text['FILE']);
1286 $request = $this->getEvalTestSettings(@$section_text['REQUEST'],$tmp_file);
1287 $headers = $this->getEvalTestSettings(@$section_text['HEADERS'],$tmp_file);
1290 $query_string = $haveget?$section_text['GET']:'';
1300 $post = $havepost?$section_text['POST']:NULL;
1317 $query_string = $haveget?$section_text['GET']:'';
1343 if (array_key_exists('POST', $section_text) && (!$haveget || !empty($section_text['POST']))) {
1344 $post = $section_text['POST'];
1377 $args = $section_text['ARGS'] ? $section_text['ARGS'] : '';
1419 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1420 if (isset($section_text['EXPECTF'])) {
1421 $wanted = $section_text['EXPECTF'];
1423 $wanted = $section_text['EXPECTREGEX'];
1426 if (isset($section_text['EXPECTF'])) {
1499 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1501 $lines = preg_split("/[\n\r]+/",$section_text['EXPECTHEADERS']);
1526 if (!$failed && !$skipexpect && isset($section_text['EXPECT'])) {
1527 $wanted = $section_text['EXPECT'];