Lines Matching refs:section_text

1054 	function getINISettings(&$section_text)  argument
1059 if (array_key_exists('INI', $section_text)) {
1060 settings2array(preg_split( "/[\n\r]+/", $section_text['INI']), $ini_settings);
1065 function getINIParams(&$section_text) argument
1067 if (!$section_text) return '';
1072 $ini = $this->getINISettings($section_text);
1107 function getENVSettings(&$section_text,$testfile) argument
1112 if (array_key_exists('ENV', $section_text)) {
1113 $sect = $this->evalSettings($testfile,$section_text['ENV']);
1120 function getEvalTestSettings($section_text,$testfile) argument
1125 if ($section_text) {
1126 $sect = $this->evalSettings($testfile,$section_text);
1139 $section_text = array(
1157 $section_text[$section] = '';
1162 $section_text[$section] .= $line;
1165 foreach ($section_text as $k=>$v) {
1168 $section_text[$k]=$matches[1];
1170 $section_text[$k]=trim($v);
1173 return $section_text;
1179 function getSkipReason($file,&$section_text,$docgi=false) argument
1184 $this->showstatus($section_text['TEST'], 'SKIPPED', 'CGI Test needs CGI Binary');
1191 isset($section_text['INI']) && $section_text['INI']) {
1192 $settings = $this->getINISettings($section_text);
1203 …$this->showstatus($section_text['TEST'], 'SKIPPED', "Test requires ini setting $k=[$v], not [".($h…
1209 if ($section_text['SKIPIF']) {
1210 …$output = trim($this->runscript($section_text['SKIPIF'],$this->test_executable_iscgi,realpath(dirn…
1217 $this->showstatus($section_text['TEST'], 'SKIPPED', $reason);
1238 $section_text = $this->getSectionText($file);
1244 $tested = $section_text['TEST']." [$shortname]";
1263 $env = $this->getENVSettings($section_text,$tmp_file);
1264 $ini_overwrites = $this->getINIParams($section_text);
1269 $havepost = array_key_exists('POST', $section_text) && !empty($section_text['POST']);
1271 $haveget = array_key_exists('GET', $section_text) && !empty($section_text['GET']);
1272 $do_cgi = array_key_exists('CGI', $section_text) || $haveget || $havepost;
1274 $skipreason = $this->getSkipReason($file,$section_text,$do_cgi);
1280 file_put_contents($tmp_file,$section_text['FILE']);
1287 $request = $this->getEvalTestSettings(@$section_text['REQUEST'],$tmp_file);
1288 $headers = $this->getEvalTestSettings(@$section_text['HEADERS'],$tmp_file);
1291 $query_string = $haveget?$section_text['GET']:'';
1301 $post = $havepost?$section_text['POST']:NULL;
1318 $query_string = $haveget?$section_text['GET']:'';
1344 if (array_key_exists('POST', $section_text) && (!$haveget || !empty($section_text['POST']))) {
1345 $post = $section_text['POST'];
1378 $args = $section_text['ARGS'] ? $section_text['ARGS'] : '';
1420 if (isset($section_text['EXPECTF']) || isset($section_text['EXPECTREGEX'])) {
1421 if (isset($section_text['EXPECTF'])) {
1422 $wanted = $section_text['EXPECTF'];
1424 $wanted = $section_text['EXPECTREGEX'];
1427 if (isset($section_text['EXPECTF'])) {
1447 if (!$failed && $this->conf['TEST_WEB'] && isset($section_text['EXPECTHEADERS'])) {
1449 $lines = preg_split("/[\n\r]+/",$section_text['EXPECTHEADERS']);
1474 if (!$failed && !$skipexpect && isset($section_text['EXPECT'])) {
1475 $wanted = $section_text['EXPECT'];