Permalink
Browse files

added and updated docblocks

git-svn-id: http://svn.php.net/repository/pear/packages/Event_Dispatcher/trunk@183474 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 305ff5e commit cd91bc08c5d04ce6bde778981ca468c926563abf Stephan Schmidt committed Apr 3, 2005
Showing with 26 additions and 1 deletion.
  1. +14 −0 examples/notification-class.php
  2. +6 −0 tests/Console_TestListener.php
  3. +3 −1 tests/Dispatcher_testcase.php
  4. +3 −0 tests/test.php
@@ -2,6 +2,9 @@
/**
* example that shows how to change the class used for notifications
*
+ * You may change the notification class per dispatcher or globally for all
+ * newly created dispatchers.
+ *
* @package Event_Dispatcher
* @subpackage Examples
* @author Stephan Schmidt <schst@php.net>
@@ -14,6 +17,10 @@
/**
* example sender
+ *
+ * @package Event_Dispatcher
+ * @subpackage Examples
+ * @author Stephan Schmidt <schst@php.net>
*/
class sender
{
@@ -37,6 +44,13 @@ function receiver(&$notification)
echo '<br />';
}
+/**
+ * custom notification class
+ *
+ * @package Event_Dispatcher
+ * @subpackage Examples
+ * @author Stephan Schmidt <schst@php.net>
+ */
class MyNotification extends Event_Notification
{
}
@@ -1,4 +1,10 @@
<?php
+/**
+ * Testlistener for PHPUnit Testcase
+ *
+ * @package Event_Dispatcher
+ * @subpackage Tests
+ */
class Console_TestListener extends PHPUnit_TestListener {
function addError(&$test, &$t) {
$this->_errors += 1;
@@ -5,7 +5,9 @@
/**
* Unit tests for Event_Dispatcher package.
*
- * @author Bertrand Mansion <bmansion@mamasam.com>
+ * @author Bertrand Mansion <bmansion@mamasam.com>
+ * @package Event_Dispatcher
+ * @subpackage Tests
*/
class Notified
View
@@ -3,6 +3,9 @@
* Unit tests for Event_Dispatcher class
*
* $Id$
+ *
+ * @package Event_Dispatcher
+ * @subpackage Tests
*/
require_once 'System.php';

0 comments on commit cd91bc0

Please sign in to comment.