修正responseTest

This commit is contained in:
thinkphp
2016-04-18 20:28:44 +08:00
parent 2ba7455047
commit ba0c3de8ba

View File

@@ -94,7 +94,7 @@ class responseTest extends \PHPUnit_Framework_TestCase
$result = Response::send($dataArr, "jsonp", true); $result = Response::send($dataArr, "jsonp", true);
$this->assertEquals('callback({"key":"value"});', $result); $this->assertEquals('callback({"key":"value"});', $result);
Response::tramsform(function () { Response::transform(function () {
return "callbackreturndata"; return "callbackreturndata";
}); });
@@ -105,12 +105,12 @@ class responseTest extends \PHPUnit_Framework_TestCase
} }
/** /**
* @covers think\Response::tramsform * @covers think\Response::transform
* @todo Implement testTramsform(). * @todo Implement testtransform().
*/ */
public function testTramsform() public function testtransform()
{ {
Response::tramsform(function () { Response::transform(function () {
return "callbackreturndata"; return "callbackreturndata";
}); });
@@ -118,7 +118,7 @@ class responseTest extends \PHPUnit_Framework_TestCase
$result = Response::send($dataArr, "", true); $result = Response::send($dataArr, "", true);
$this->assertEquals("callbackreturndata", $result); $this->assertEquals("callbackreturndata", $result);
Response::tramsform(null); Response::transform(null);
} }
/** /**