Browse Source

fixing bug in event class.

Signed-off-by: Taylor Otwell <taylorotwell@gmail.com>
Taylor Otwell 12 years ago
parent
commit
6535fca31c
2 changed files with 2 additions and 2 deletions
  1. 1 1
      laravel/cli/tasks/test/phpunit.php
  2. 1 1
      laravel/event.php

+ 1 - 1
laravel/cli/tasks/test/phpunit.php

@@ -42,4 +42,4 @@ require path('sys').'core.php';
 // --------------------------------------------------------------
 // Start the default bundle.
 // --------------------------------------------------------------
-Bundle::start(DEFAULT_BUNDLE);
+Laravel\Bundle::start(DEFAULT_BUNDLE);

+ 1 - 1
laravel/event.php

@@ -62,7 +62,7 @@ class Event {
 	 */
 	public static function clear($event)
 	{
-		static::$events[$event] = array();
+		unset(static::$events[$event]);
 	}
 
 	/**