Fix short array usage.

Refs FIVESMX-8723
This commit is contained in:
mark_story 2016-04-29 09:28:05 -04:00
parent cf55767fa0
commit af953700b8

View file

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