Cannot use php 5.4+ array syntax for 2.x.

This commit is contained in:
ADmad 2014-04-26 17:29:09 +05:30
parent f23d811ff5
commit 68572d8046

View file

@ -142,7 +142,7 @@ class SecurityComponentTest extends CakeTestCase {
public function setUp() {
parent::setUp();
$request = $this->getMock('CakeRequest', ['here'], ['posts/index', false]);
$request = $this->getMock('CakeRequest', array('here'), array('posts/index', false));
$request->addParams(array('controller' => 'posts', 'action' => 'index'));
$request->expects($this->any())
->method('here')