zoe Sun Apr 26 07:38:32 2009 UTC
Added files:
/phpruntests/tests/testcase/sections/configurationsections
rtGetSectionTest.php
Log:
Added Get setion test
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php?view=markup&rev=1.1
Index:
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php
+++
phpruntests/tests/testcase/sections/configurationsections/rtGetSectionTest.php
<?php
require_once 'PHPUnit/Framework.php';
require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php';
class rtGetSectionTest extends PHPUnit_Framework_TestCase
{
public function testCreateInstance()
{
$getSection = new rtGetSection('GET',
array('hello=World&goodbye=MrChips'));
$envlist = $getSection->getGetVariables();
$this->assertEquals('hello=World&goodbye=MrChips',
$envlist['QUERY_STRING']);
}
}
?>
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php