Commit 3ec95536 by Qiang Xue

Fixed test break.

parent 36f6ebab
...@@ -5,7 +5,7 @@ namespace yiiunit\framework\web; ...@@ -5,7 +5,7 @@ namespace yiiunit\framework\web;
use Yii; use Yii;
use yii\helpers\StringHelper; use yii\helpers\StringHelper;
class Response extends \yii\web\Response class MockResponse extends \yii\web\Response
{ {
public function send() public function send()
{ {
...@@ -16,7 +16,7 @@ class Response extends \yii\web\Response ...@@ -16,7 +16,7 @@ class Response extends \yii\web\Response
class ResponseTest extends \yiiunit\TestCase class ResponseTest extends \yiiunit\TestCase
{ {
/** /**
* @var Response * @var MockResponse
*/ */
public $response; public $response;
...@@ -24,7 +24,7 @@ class ResponseTest extends \yiiunit\TestCase ...@@ -24,7 +24,7 @@ class ResponseTest extends \yiiunit\TestCase
{ {
parent::setUp(); parent::setUp();
$this->mockApplication(); $this->mockApplication();
$this->response = new Response; $this->response = new MockResponse;
} }
public function rightRanges() public function rightRanges()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment