cvs: phpruntests /tests/testcase/sections/configurationsections rtGetSectionTest.php
| From: | Zoe Slattery | Date: | Sun, 26 Apr 2009 07:38:32 +0000 |
| Subject: | cvs: phpruntests /tests/testcase/sections/configurationsections rtGetSectionTest.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57273@lists.php.net to get a copy of this message | ||
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']);
}
}
?>