Fix: Stray [] syntax in php 5.3 codebase

This commit is contained in:
Rachman Chavik 2014-03-07 09:16:07 +07:00
parent e71d650ade
commit aa0f1c1862

View file

@ -501,7 +501,7 @@ class CakeEventManagerTest extends CakeTestCase {
}
/**
* Test that events are dispatched properly when there are global and local
* Test that events are dispatched properly when there are global and local
* listeners at the same priority.
*
* @return void
@ -511,7 +511,7 @@ class CakeEventManagerTest extends CakeTestCase {
CakeEventManager::instance()->attach($listener);
$listener2 = new CakeEventTestListener();
$manager = new CakeEventManager();
$manager->attach([$listener2, 'listenerFunction'], 'fake.event');
$manager->attach(array($listener2, 'listenerFunction'), 'fake.event');
$manager->dispatch(new CakeEvent('fake.event', $this));
$this->assertEquals(array('listenerFunction'), $listener->callStack);