com phpruntests: Added Get setion test: tests/testcase/sections/configurationsections/rtGetSectionTest.php

From: Date: Sun, 26 Apr 2009 07:38:32 +0000
Subject: com phpruntests: Added Get setion test: tests/testcase/sections/configurationsections/rtGetSectionTest.php
Groups: php.qa 
Request: Send a blank email to php-qa+get-66514@lists.php.net to get a copy of this message
Commit: b02ada4996bd50a1a2a58902f7410d233a9693dd Author: Zoe Slattery <zoe@php.net> Sun, 26 Apr 2009 07:38:32 +0000 Parents: 89b6b9e1ad5791620b47a59b26cc3abce2120853 Branches: master Link: http://git.php.net/?p=phpruntests.git;a=commitdiff;h=b02ada4996bd50a1a2a58902f7410d233a9693dd Log: Added Get setion test Changed paths: A tests/testcase/sections/configurationsections/rtGetSectionTest.php Diff: diff --git a/tests/testcase/sections/configurationsections/rtGetSectionTest.php b/tests/testcase/sections/configurationsections/rtGetSectionTest.php new file mode 100644 index 0000000..37ac4b1 --- /dev/null +++ b/tests/testcase/sections/configurationsections/rtGetSectionTest..php @@ -0,0 +1,15 @@ +<?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']); + } +} +?> \ No newline at end of file

« previous php.qa (#66514) next »