zoe Sun May 17 12:54:30 2009 UTC
Modified files:
/phpruntests/tests/testcase/sections/configurationsections
rtPostSectionTest.php
rtEnvSectionTest.php
rtDeflatePostSectionTest.php
rtArgsSectionTest.php
rtPostRawSectionTest.php
rtGzipPostSectionTest.php
rtGetSectionTest.php
rtIniSectionTest.php
rtCookieSectionTest.php
Log:
fixed tests
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php?r1=1.1&r2=1.2&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php:1.1
phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php:1.2
---
phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php:1.1
Mon Apr 27 21:06:34 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php
Sun May 17 12:54:29 2009
@@ -6,7 +6,7 @@
{
public function testCreateInstance()
{
- $postSection = new rtPostSection('POST',
array('hello=World&goodbye=MrChips'));
+ $postSection = rtPostSection::getInstance('POST',
array('hello=World&goodbye=MrChips'));
$envVars = $postSection->getPostVariables();
$this->assertEquals('POST', $envVars['REQUEST_METHOD']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php:1.2
phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php:1.3
---
phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php:1.2
Fri Apr 24 09:42:02 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtEnvSectionTest.php
Sun May 17 12:54:29 2009
@@ -7,7 +7,7 @@
{
public function testCreateInstance()
{
- $envSection = new rtEnvSection('ENV', array('env1 = ENV1',
'env2=ENV2'));
+ $envSection = rtEnvSection::getInstance('ENV', array('env1 = ENV1',
'env2=ENV2'));
$envlist = $envSection->getTestEnvironmentVariables();
$this->assertEquals('ENV1', $envlist['env1']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php?r1=1.1&r2=1.2&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php:1.1
phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php:1.2
---
phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php:1.1
Thu Apr 30 20:07:43 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtDeflatePostSectionTest.php
Sun May 17 12:54:29 2009
@@ -6,7 +6,7 @@
{
public function testCreateInstance()
{
- $postSection = new rtDeflatePostSection('GZIP_POST',
array('hello=World&goodbye=MrChips'));
+ $postSection = rtDeflatePostSection::getInstance('DEFLATE_POST',
array('hello=World&goodbye=MrChips'));
$envVars = $postSection->getPostVariables();
$this->assertEquals('POST', $envVars['REQUEST_METHOD']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php:1.2
phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php:1.3
---
phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php:1.2
Fri Apr 24 09:42:02 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtArgsSectionTest.php
Sun May 17 12:54:29 2009
@@ -7,7 +7,7 @@
{
public function testCreateInstance()
{
- $argsSection = new rtArgsSection('ARGS', array('-vvv -a value -1111 -2
-v'));
+ $argsSection = rtArgsSection::getInstance('ARGS', array('-vvv -a value
-1111 -2 -v'));
$arglist = $argsSection->getTestCommandLineArguments();
$this->assertEquals('-- -vvv -a value -1111 -2 -v', $arglist);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php:1.2
phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php:1.3
---
phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php:1.2
Mon May 4 16:29:55 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtPostRawSectionTest.php
Sun May 17 12:54:29 2009
@@ -12,7 +12,7 @@
'Content-Type:the second',
'mary',
);
- $postSection = new rtPostRawSection('POST', $post_array);
+ $postSection = rtPostRawSection::getInstance('POST_RAW', $post_array);
$envVars = $postSection->getPostVariables();
$this->assertEquals('POST', $envVars['REQUEST_METHOD']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php?r1=1.1&r2=1.2&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php:1.1
phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php:1.2
---
phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php:1.1
Thu Apr 30 08:12:32 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtGzipPostSectionTest.php
Sun May 17 12:54:29 2009
@@ -6,7 +6,7 @@
{
public function testCreateInstance()
{
- $postSection = new rtGzipPostSection('GZIP_POST',
array('hello=World&goodbye=MrChips'));
+ $postSection = rtGzipPostSection::getInstance('GZIP_POST',
array('hello=World&goodbye=MrChips'));
$envVars = $postSection->getPostVariables();
$this->assertEquals('POST', $envVars['REQUEST_METHOD']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php?r1=1.1&r2=1.2&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php:1.1
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php:1.2
---
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php:1.1
Sun Apr 26 07:38:32 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php
Sun May 17 12:54:29 2009
@@ -6,7 +6,7 @@
{
public function testCreateInstance()
{
- $getSection = new rtGetSection('GET',
array('hello=World&goodbye=MrChips'));
+ $getSection = rtGetSection::getInstance('GET',
array('hello=World&goodbye=MrChips'));
$envlist = $getSection->getGetVariables();
$this->assertEquals('hello=World&goodbye=MrChips',
$envlist['QUERY_STRING']);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php?r1=1.2&r2=1.3&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php:1.2
phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php:1.3
---
phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php:1.2
Fri Apr 24 09:42:02 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtIniSectionTest.php
Sun May 17 12:54:29 2009
@@ -7,7 +7,7 @@
{
public function testCreateInstance()
{
- $iniSection = new rtIniSection('INI', array('error_reporting=E_ALL |
E_STRICT | E_DEPRECATED', 'assert.active = 1'));
+ $iniSection = rtIniSection::getInstance('INI',
array('error_reporting=E_ALL | E_STRICT | E_DEPRECATED', 'assert.active = 1'));
$inilist = $iniSection->getCommandLineArguments();
$this->assertEquals('error_reporting=E_ALL | E_STRICT | E_DEPRECATED',
$inilist[0]);
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php?r1=1.1&r2=1.2&diff_format=u
Index:
phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php
diff -u
phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php:1.1
phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php:1.2
---
phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php:1.1
Mon May 4 17:02:37 2009
+++
phpruntests/tests/testcase/sections/configurationsections/rtCookieSectionTest.php
Sun May 17 12:54:29 2009
@@ -6,7 +6,7 @@
{
public function testCreateInstance()
{
- $cookieSection = new rtCookieSection('COOKIE',
array('hello=World&goodbye=MrChips'));
+ $cookieSection = rtCookieSection::getInstance('COOKIE',
array('hello=World&goodbye=MrChips'));
$envlist = $cookieSection->getCookieVariables();
$this->assertEquals('hello=World&goodbye=MrChips',
$envlist['HTTP_COOKIE']);
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php