Lines Matching refs:section_text
1041 function getINISettings(&$section_text) argument
1046 if (array_key_exists('INI', $section_text)) {
1047 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1052 function getINIParams(&$section_text) argument
1054 if (!$section_text) return '';
1059 $ini = $this->getINISettings($section_text);
1094 function getENVSettings(&$section_text,$testfile) argument
1099 if (array_key_exists('ENV', $section_text)) {
1100 $sect = $this->evalSettings($testfile,$section_text['ENV']);
1107 function getEvalTestSettings($section_text,$testfile) argument
1112 if ($section_text) {
1113 $sect = $this->evalSettings($testfile,$section_text);
1126 $section_text = array(
1144 $section_text[$section] = '';
1149 $section_text[$section] .= $line;
1152 foreach ($section_text as $k=>$v) {
1155 $section_text[$k]=$matches[1];
1157 $section_text[$k]=trim($v);
1160 return $section_text;
1166 function getSkipReason($file,&$section_text,$docgi=false) argument
1171 $this->showstatus($section_text['TEST'], 'SKIPPED', 'CGI Test needs CGI Binary');
1178 isset($section_text['INI']) && $section_text['INI']) {
1179 $settings = $this->getINISettings($section_text);
1190 …$this->showstatus($section_text['TEST'], 'SKIPPED', "Test requires ini setting $k=[$v], not [".($h…
1196 if ($section_text['SKIPIF']) {
1197 …$output = trim($this->runscript($section_text['SKIPIF'],$this->test_executable_iscgi,realpath(dirn…
1204 $this->showstatus($section_text['TEST'], 'SKIPPED', $reason);
1225 $section_text = $this->getSectionText($file);
1231 $tested = $section_text['TEST']." [$shortname]";
1250 $env = $this->getENVSettings($section_text,$tmp_file);
1251 $ini_overwrites = $this->getINIParams($section_text);
1256 $havepost = array_key_exists('POST', $section_text) && !empty($section_text['POST']);
1258 $haveget = array_key_exists('GET', $section_text) && !empty($section_text['GET']);
1259 $do_cgi = array_key_exists('CGI', $section_text) || $haveget || $havepost;
1261 $skipreason = $this->getSkipReason($file,$section_text,$do_cgi);
1267 file_put_contents($tmp_file,$section_text['FILE']);
1274 $request = $this->getEvalTestSettings(@$section_text['REQUEST'],$tmp_file);
1275 $headers = $this->getEvalTestSettings(@$section_text['HEADERS'],$tmp_file);
1278 $query_string = $haveget?$section_text['GET']:'';
1288 $post = $havepost?$section_text['POST']:NULL;
1305 $query_string = $haveget?$section_text['GET']:'';
1331 if (array_key_exists('POST', $section_text) && (!$haveget || !empty($section_text['POST']))) {
1332 $post = $section_text['POST'];
1365 $args = $section_text['ARGS'] ?: '';
1407 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1408 if (isset($section_text['EXPECTF'])) {
1409 $wanted = $section_text['EXPECTF'];
1411 $wanted = $section_text['EXPECTREGEX'];
1414 if (isset($section_text['EXPECTF'])) {
1487 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1489 $lines = preg_split("/[\n\r]+/",$section_text['EXPECTHEADERS']);
1514 if (!$failed && !$skipexpect && isset($section_text['EXPECT'])) {
1515 $wanted = $section_text['EXPECT'];