From ba0c3de8baa1bdb549a46ff59204721d2851339e Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 18 Apr 2016 20:28:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3responseTest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/thinkphp/library/think/responseTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/thinkphp/library/think/responseTest.php b/tests/thinkphp/library/think/responseTest.php index 58bd5fc7..55702e02 100644 --- a/tests/thinkphp/library/think/responseTest.php +++ b/tests/thinkphp/library/think/responseTest.php @@ -94,7 +94,7 @@ class responseTest extends \PHPUnit_Framework_TestCase $result = Response::send($dataArr, "jsonp", true); $this->assertEquals('callback({"key":"value"});', $result); - Response::tramsform(function () { + Response::transform(function () { return "callbackreturndata"; }); @@ -105,12 +105,12 @@ class responseTest extends \PHPUnit_Framework_TestCase } /** - * @covers think\Response::tramsform - * @todo Implement testTramsform(). + * @covers think\Response::transform + * @todo Implement testtransform(). */ - public function testTramsform() + public function testtransform() { - Response::tramsform(function () { + Response::transform(function () { return "callbackreturndata"; }); @@ -118,7 +118,7 @@ class responseTest extends \PHPUnit_Framework_TestCase $result = Response::send($dataArr, "", true); $this->assertEquals("callbackreturndata", $result); - Response::tramsform(null); + Response::transform(null); } /**