com phpruntests: post raw changes: src/testcase/preconditions/rtIsSectionImplemented.php src/testcase/rtTestConfiguration.php
src/testcase/sections/rtSection.php
| From: | David Soria Parra | Date: | Mon, 04 May 2009 16:28:17 +0000 |
| Subject: | com phpruntests: post raw changes: src/testcase/preconditions/rtIsSectionImplemented.php src/testcase/rtTestConfiguration.php src/testcase/sections/rtSection.php |
||
| Groups: | php.qa | ||
| Request: | Send a blank email to php-qa+get-66497@lists.php.net to get a copy of this message | ||
Commit: 17fac30eab089496794130f74b5a5994adb47934
Author: Zoe Slattery <zoe@php.net> Mon, 4 May 2009 16:28:17 +0000
Parents: 81192aca7133aa1bae3e927eb4414351176a5871
Branches: master
Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=17fac30eab089496794130f74b5a5994adb47934
Log:
post raw changes
Changed paths:
M src/testcase/preconditions/rtIsSectionImplemented.php
M src/testcase/rtTestConfiguration.php
M src/testcase/sections/rtSection.php
Diff:
diff --git a/src/testcase/preconditions/rtIsSectionImplemented.php
b/src/testcase/preconditions/rtIsSectionImplemented.php
index a66699b...1b69241 100644
--- a/src/testcase/preconditions/rtIsSectionImplemented.php
+++ b/src/testcase/preconditions/rtIsSectionImplemented.php
@@ -21,6 +21,7 @@ class rtIsSectionImplemented implements rtTestPreCondition
'POST' => 'rtPostSection',
'GZIP_POST' => 'rtGzipPostSection',
'DEFLATE_POST' => 'rtDeflatePostSection',
+ 'POST_RAW' => 'rtPostRawSection',
);
/** Return the message associated with an unimplemented test section
diff --git a/src/testcase/rtTestConfiguration.php b/src/testcase/rtTestConfiguration.php
index 73eb93b..cd13623 100644
--- a/src/testcase/rtTestConfiguration.php
+++ b/src/testcase/rtTestConfiguration.php
@@ -75,6 +75,9 @@ class rtTestConfiguration
if (array_key_exists('DEFLATE_POST', $sections)) {
$this->environmentVariables = array_merge($this->environmentVariables,
$sections['DEFLATE_POST']->getPostVariables());
}
+ if (array_key_exists('POST_RAW', $sections)) {
+ $this->environmentVariables = array_merge($this->environmentVariables,
$sections['POST_RAW']->getPostVariables());
+ }
}
@@ -118,6 +121,9 @@ class rtTestConfiguration
if(in_array('DEFLATE_POST', $sectionHeadings)) {
$this->inputFileString = '<
'.$sections['DEFLATE_POST']->getPostFileName();
}
+ if(in_array('POST_RAW', $sectionHeadings)) {
+ $this->inputFileString = '<
'.$sections['POST_RAW']->getPostFileName();
+ }
}
private function isCgiTest($sectionHeadings)
diff --git a/src/testcase/sections/rtSection.php b/src/testcase/sections/rtSection.php
index 5900b9c..914499b 100644
--- a/src/testcase/sections/rtSection.php
+++ b/src/testcase/sections/rtSection.php
@@ -22,6 +22,7 @@ abstract class rtSection
'POST' => 'rtPostSection',
'GZIP_POST' => 'rtGzipPostSection',
'DEFLATE_POST' => 'rtDeflatePostSection',
+ 'POST_RAW' => 'rtPostRawSection',
);
protected $sectionName;