zoe Mon Apr 27 21:06:34 2009 UTC Added files: /phpruntests/tests/testcase/sections/configurationsections rtPostSectionTest.php Log: Start of POST implementation
http://cvs.php.net/viewvc.cgi/phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php?view=markup&rev=1.1 Index: phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php +++ phpruntests/tests/testcase/sections/configurationsections/rtPostSectionTest.php <?php require_once 'PHPUnit/Framework.php'; require_once dirname(__FILE__) . '../../../../../src/rtAutoload.php'; class rtPostSectionTest extends PHPUnit_Framework_TestCase { public function testCreateInstance() { $postSection = new rtPostSection('POST', array('hello=World&goodbye=MrChips')); $envVars = $postSection->getPostVariables(); $this->assertEquals('POST', $envVars['REQUEST_METHOD']); $fileName = $postSection->getPostFileName(); $string = file_get_contents($fileName); $this->assertEquals('hello=World&goodbye=MrChips', $string); } } ?> -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php