Permalink
Browse files

update tests

  • Loading branch information...
zoghal committed Oct 27, 2013
1 parent ab96ed5 commit 7c4a698bde9438455deda0bc1274f4d8038f2fbc
Showing with 13 additions and 1 deletion.
  1. +13 −1 lib/Cake/Test/Case/Network/CakeResponseTest.php
@@ -1181,7 +1181,7 @@ public function testFileWithUnknownFileTypeOpera() {
$response->expects($this->at(1))
->method('type')
->with('application/octetstream')
->with('application/octet-stream')
->will($this->returnValue(false));
$response->expects($this->once())
@@ -1455,6 +1455,10 @@ public function testFileRangeOffsets($range, $length, $offsetResponse) {
->with('Accept-Ranges', 'bytes');
$response->expects($this->at(3))
->method('header')
->with('Content-Transfer-Encoding', 'binary');
$response->expects($this->at(4))
->method('header')
->with(array(
'Content-Length' => $length,
@@ -1506,6 +1510,10 @@ public function testFileRange() {
->with('Accept-Ranges', 'bytes');
$response->expects($this->at(3))
->method('header')
->with('Content-Transfer-Encoding', 'binary');
$response->expects($this->at(4))
->method('header')
->with(array(
'Content-Length' => 18,
@@ -1557,6 +1565,10 @@ public function testFileRangeInvalid() {
->with('Accept-Ranges', 'bytes');
$response->expects($this->at(3))
->method('header')
->with('Content-Transfer-Encoding', 'binary');
$response->expects($this->at(4))
->method('header')
->with(array(
'Content-Range' => 'bytes 0-37/38',

0 comments on commit 7c4a698

Please sign in to comment.