This commit is contained in:
thinkphp
2016-01-28 17:03:59 +08:00
parent f70c370ced
commit 9424681bd1

View File

@@ -130,10 +130,11 @@ class inputTest extends \PHPUnit_Framework_TestCase
public function testHasValue() public function testHasValue()
{ {
$_GET['name'] = 'value'; $_GET['name'] = 'value';
$_GET['config']['name'] = 'value';
$this->assertEquals(true, Input::get('?name')); $this->assertEquals(true, Input::get('?name'));
$this->assertEquals(false, Input::get('?id')); $this->assertEquals(false, Input::get('?id'));
$this->assertEquals(true, Input::get('?get.name')); $this->assertEquals(true, Input::get('?config.name'));
$this->assertEquals(false, Input::get('?get.id')); $this->assertEquals(false, Input::get('?config.id'));
} }
public function testSuperglobals() public function testSuperglobals()