From 9424681bd1d00fd39ef4c1160083b03a86b83254 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 28 Jan 2016 17:03:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/inputTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/thinkphp/library/think/inputTest.php b/tests/thinkphp/library/think/inputTest.php index cdfeba8b..dc91b29e 100644 --- a/tests/thinkphp/library/think/inputTest.php +++ b/tests/thinkphp/library/think/inputTest.php @@ -129,11 +129,12 @@ class inputTest extends \PHPUnit_Framework_TestCase public function testHasValue() { - $_GET['name'] = 'value'; + $_GET['name'] = 'value'; + $_GET['config']['name'] = 'value'; $this->assertEquals(true, Input::get('?name')); $this->assertEquals(false, Input::get('?id')); - $this->assertEquals(true, Input::get('?get.name')); - $this->assertEquals(false, Input::get('?get.id')); + $this->assertEquals(true, Input::get('?config.name')); + $this->assertEquals(false, Input::get('?config.id')); } public function testSuperglobals()