From eb779ff6cba0f39b4713c8e3bb2b11ab2a280040 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 8 Jan 2014 23:03:38 -0500 Subject: [PATCH] Fixed test break. --- tests/unit/framework/web/ResponseTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/framework/web/ResponseTest.php b/tests/unit/framework/web/ResponseTest.php index 7883d86..2329a74 100644 --- a/tests/unit/framework/web/ResponseTest.php +++ b/tests/unit/framework/web/ResponseTest.php @@ -50,7 +50,7 @@ class ResponseTest extends \yiiunit\TestCase $fullContent = file_get_contents($dataFile); $_SERVER['HTTP_RANGE'] = 'bytes=' . $rangeHeader; ob_start(); - $this->response->sendFile($dataFile); + $this->response->sendFile($dataFile)->send(); $content = ob_get_clean(); $this->assertEquals($expectedContent, $content);