From 22e64aba80ef6ca3426bd3ad6ed1e3699593b626 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 12 Sep 2016 16:02:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/requestTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/thinkphp/library/think/requestTest.php b/tests/thinkphp/library/think/requestTest.php index a37fdf78..964b5c85 100644 --- a/tests/thinkphp/library/think/requestTest.php +++ b/tests/thinkphp/library/think/requestTest.php @@ -175,4 +175,12 @@ class requestTest extends \PHPUnit_Framework_TestCase $this->assertTrue($request->isMobile()); } + public function testBind() + { + $request = new Request(); + $request->user = 'User1'; + $request->bind(['user' => 'User2']); + $this->assertEquals('User2', $request->user); + } + }