Permalink
Browse files

Fix: Stray [] syntax in php 5.3 codebase

  • Loading branch information...
rchavik committed Mar 7, 2014
1 parent e71d650 commit aa0f1c1862284b886a2899a7ad0f141e3d9466db
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Test/Case/Event/CakeEventManagerTest.php
@@ -501,7 +501,7 @@ public function testDispatchLocalHandledByGlobal() {
}
/**
- * 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 @@ public function testDispatchWithGlobalAndLocalEvents() {
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);

0 comments on commit aa0f1c1

Please sign in to comment.