Skip to content

Commit

Permalink
Fix: Stray [] syntax in php 5.3 codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
rchavik committed Mar 7, 2014
1 parent e71d650 commit aa0f1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Test/Case/Event/CakeEventManagerTest.php
Expand Up @@ -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
Expand All @@ -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);
Expand Down

0 comments on commit aa0f1c1

Please sign in to comment.