Skip to content

Commit

Permalink
Fix short array usage.
Browse files Browse the repository at this point in the history
Refs FIVESMX-8723
  • Loading branch information
markstory committed Apr 29, 2016
1 parent cf55767 commit af95370
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Cake/Test/Case/Network/CakeResponseTest.php
Expand Up @@ -1735,10 +1735,10 @@ public function invalidFileRangeProvider() {
*/
public function testFileRangeInvalid($range) {
$_SERVER['HTTP_RANGE'] = $range;
$response = $this->getMock('CakeResponse', [
$response = $this->getMock('CakeResponse', array(
'_sendHeader',
'_isActive',
]);
));

$response->file(
CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'css' . DS . 'test_asset.css',
Expand All @@ -1762,10 +1762,10 @@ public function testFileRangeInvalid($range) {
*/
public function testFileRangeReversed() {
$_SERVER['HTTP_RANGE'] = 'bytes=30-5';
$response = $this->getMock('CakeResponse', [
$response = $this->getMock('CakeResponse', array(
'_sendHeader',
'_isActive',
]);
));

$response->file(
CAKE . 'Test' . DS . 'test_app' . DS . 'Vendor' . DS . 'css' . DS . 'test_asset.css',
Expand Down

0 comments on commit af95370

Please sign in to comment.