Browse Source

Fix: Stray [] syntax in php 5.3 codebase

Rachman Chavik 12 years ago
parent
commit
aa0f1c1862
1 changed files with 2 additions and 2 deletions
  1. 2 2
      lib/Cake/Test/Case/Event/CakeEventManagerTest.php

+ 2 - 2
lib/Cake/Test/Case/Event/CakeEventManagerTest.php

@@ -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.
  * listeners at the same priority.
  *
  *
  * @return void
  * @return void
@@ -511,7 +511,7 @@ class CakeEventManagerTest extends CakeTestCase {
 		CakeEventManager::instance()->attach($listener);
 		CakeEventManager::instance()->attach($listener);
 		$listener2 = new CakeEventTestListener();
 		$listener2 = new CakeEventTestListener();
 		$manager = new CakeEventManager();
 		$manager = new CakeEventManager();
-		$manager->attach([$listener2, 'listenerFunction'], 'fake.event');
+		$manager->attach(array($listener2, 'listenerFunction'), 'fake.event');
 
 
 		$manager->dispatch(new CakeEvent('fake.event', $this));
 		$manager->dispatch(new CakeEvent('fake.event', $this));
 		$this->assertEquals(array('listenerFunction'), $listener->callStack);
 		$this->assertEquals(array('listenerFunction'), $listener->callStack);