com phpruntests: Added Get setion: src/rtClassMap.php src/testcase/sections/configurationsections/rtGetSection.php

From: Date: Sun, 26 Apr 2009 07:38:11 +0000
Subject: com phpruntests: Added Get setion: src/rtClassMap.php src/testcase/sections/configurationsections/rtGetSection.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66516@lists.php.net to get a copy of this message
Commit: 89b6b9e1ad5791620b47a59b26cc3abce2120853 Author: Zoe Slattery <zoe@php.net> Sun, 26 Apr 2009 07:38:11 +0000 Parents: f53a460e65d4b3700fb85976ff972e81b8da1e4c Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=89b6b9e1ad5791620b47a59b26cc3abce2120853 Log: Added Get setion Changed paths: M src/rtClassMap.php A src/testcase/sections/configurationsections/rtGetSection.php Diff: diff --git a/src/rtClassMap.php b/src/rtClassMap.php index 988eb97..3762f0d 100644 --- a/src/rtClassMap.php +++ b/src/rtClassMap.php @@ -57,6 +57,7 @@ 'rtTestResults' => 'testcase/rtTestResults.php', 'rtArgsSection' => 'testcase/sections/configurationsections/rtArgsSection.php', 'rtEnvSection' => 'testcase/sections/configurationsections/rtEnvSection.php', + 'rtGetSection' => 'testcase/sections/configurationsections/rtGetSection.php', 'rtIniSection' => 'testcase/sections/configurationsections/rtIniSection.php', 'rtCleanSection' => 'testcase/sections/executablesections/rtCleanSection.php', 'rtFileSection' => 'testcase/sections/executablesections/rtFileSection.php', diff --git a/src/testcase/sections/configurationsections/rtGetSection.php b/src/testcase/sections/configurationsections/rtGetSection.php new file mode 100644 index 0000000..fab49ef --- /dev/null +++ b/src/testcase/sections/configurationsections/rtGetSection.php @@ -0,0 +1,45 @@ +<?php +/** + * rtGetSection + * + * @category Testing + * @package RUNTESTS + * @author Zoe Slattery <zoe@php.net> + * @author Stefan Priebsch <spriebsch@php.net> + * @copyright 2009 The PHP Group + * @license http://www.php.net/license/3_01.txt PHP License 3.01 + * @link http://qa.php.net/ + */ + +/** + * Sets environment variables for GET section + * + * + * @category Testing + * @package RUNTESTS + * @author Zoe Slattery <zoe@php.net> + * @author Stefan Priebsch <spriebsch@php.net> + * @copyright 2009 The PHP Group + * @license http://www.php.net/license/3_01.txt PHP License 3.01 + * @link http://qa.php.net/ + */ +class rtGetSection extends rtConfigurationSection +{ + private $getVariables = array(); + + protected function init() + { + $this->getVariables['QUERY_STRING'] = $this->sectionContents[0]; + } + + /** + * Additional GET environment variables required by the test + * + * @return array + */ + public function getGetVariables() + { + return $this->getVariables; + } +} +?> \ No newline at end of file

« previous php.qa (#66516) next »