mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix short array usage.
Refs FIVESMX-8723
This commit is contained in:
parent
cf55767fa0
commit
af953700b8
1 changed files with 4 additions and 4 deletions
|
@ -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',
|
||||||
|
|
Loading…
Reference in a new issue