com phpruntests: change names: src/testcase/rtTestConfiguration.php

From: Date: Tue, 28 Apr 2009 20:23:14 +0000
Subject: com phpruntests: change names: src/testcase/rtTestConfiguration.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66508@lists.php.net to get a copy of this message
Commit: 10b73c5120f09d24b936d87719f51693c35fd31c Author: Zoe Slattery <zoe@php.net> Tue, 28 Apr 2009 20:23:14 +0000 Parents: 01aedf6584b1bdc3443d53ade671191c765edefa Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=10b73c5120f09d24b936d87719f51693c35fd31c Log: change names Changed paths: M src/testcase/rtTestConfiguration.php Diff: diff --git a/src/testcase/rtTestConfiguration.php b/src/testcase/rtTestConfiguration.php index 8e19590..7202faf 100644 --- a/src/testcase/rtTestConfiguration.php +++ b/src/testcase/rtTestConfiguration.php @@ -22,7 +22,7 @@ class rtTestConfiguration private $testCommandLineArguments; private $phpExecutable; private $inputFileString; - private $isCgiTest = false; + private $cgiTest = false; private $cgiSections = array( 'GET', 'POST', @@ -40,15 +40,15 @@ class rtTestConfiguration private function init(rtRuntestsConfiguration $runConfiguration, $sections, $sectionHeadings, $fileSection) { - $this->queryCgiTest($sectionHeadings); + $this->isCgiTest($sectionHeadings); $this->setEnvironmentVariables($runConfiguration, $sections, $fileSection); $this->setPhpCommandLineArguments($runConfiguration, $sections); $this->setTestCommandLineArguments($sections); $this->setPhpExecutable($runConfiguration, $sectionHeadings); $this->setInputFileString($runConfiguration, $sections, $sectionHeadings); - - if($this->isCgiTest) { + + if($this->cgiTest) { $this->environmentVariables['SCRIPT_FILENAME'] = $fileSection->getFileName(); $this->environmentVariables['PATH_TRANSLATED'] = $fileSection->getFileName(); //Required by when the cgi has been compiled with force-cgi-redirect. @@ -90,7 +90,7 @@ class rtTestConfiguration private function setPhpExecutable($runConfiguration, $sectionHeadings) { - if ($this->isCgiTest) { + if ($this->cgiTest) { $this->phpExecutable = $runConfiguration->getSetting('PhpCgiExecutable'). " -C"; } else { $this->phpExecutable = $runConfiguration->getSetting('PhpExecutable'); @@ -105,11 +105,11 @@ class rtTestConfiguration } } - private function queryCgiTest($sectionHeadings) + private function isCgiTest($sectionHeadings) { $tempArray = array_diff($this->cgiSections, $sectionHeadings); if (count($tempArray) < count($this->cgiSections)) { - $this->isCgiTest = true; + $this->cgiTest = true; } } @@ -133,5 +133,10 @@ class rtTestConfiguration { return $this->testCommandLineArguments; } + + public function getInputFileString() + { + return $this->inputFileString; + } } ?>

« previous php.qa (#66508) next »