[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php,
From: |
nomail |
Subject: |
[Phpgroupware-cvs] ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php, 1.2 |
Date: |
Wed, 26 May 2004 16:36:25 +0200 |
Update of /ipc_test_suite/inc
Modified Files:
Branch:
class.ipc_test_suite_ui.inc.php
date: 2004/05/26 14:36:25; author: mkaemmerer; state: Exp; lines: +94 -100
Log Message:
- updated
=====================================================================
Index: ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php
diff -u ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php:1.1
ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php:1.2
--- ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php:1.1 Tue Dec 23
16:23:57 2003
+++ ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php Wed May 26 14:36:25 2004
@@ -1,110 +1,104 @@
<?php
-/**
- * IPC Test Suite
- *
- * @author Dirk Schaller <address@hidden>
- * @copyright Copyright (C) 2003 Free Software Foundation http://www.fsf.org/
- * @license http://www.fsf.org/licenses/gpl.html GNU General Public License
- * @package ipc_test_suite
- * @version $Id$
- */
-
-// include the base class for the application test classes
-include_once('class.ipc_test_suite.inc.php');
-
-/**
- * IPC test class for the notes application
- *
- * @package ipc_test_suite
- */
-class ipc_test_suite_ui
-{
/**
- * @var array $test list of applications to test
- */
- var $test;
-
- /**
- * @var boolean $debug flag for debug modus
- */
- var $debug;
-
- /**
- * @var object $ipcManager ipc manager object
- */
- var $ipcManager;
-
-
- /**
- * Constructor
- *
- * @access public
- */
- function ipc_test_suite_ui()
+ * IPC Test Suite
+ * @author Dirk Schaller <address@hidden>
+ * @copyright Copyright (C) 2003-2004, Free Software Foundation, Inc.
http://www.fsf.org/
+ * @license http://www.fsf.org/licenses/gpl.html GNU General Public
License
+ * @package ipc_test_suite
+ * @version $Id$
+ */
+
+ /**
+ * include the base class for the application test classes
+ */
+ include_once('class.ipc_test_suite.inc.php');
+
+ /**
+ * IPC test class for the notes application
+ * @package ipc_test_suite
+ */
+ class ipc_test_suite_ui
{
- // test the following applications, true->run the test,
false->no test
- $this->test = array(
- 'notes' => true, // done: ie_notes +
ipc_notes + ipc_test_suite_notes
- 'todo' => false, // done: ie_todo +
ipc_todo + ipc_test_suite_todo
- 'bookmarks' => false, // todo: ie_bookmarks +
ipc_bookmarks + ipc_test_suite_bookmarks
- 'addressbook' => false, // todo: ie_addressbook +
ipc_addressbook + ipc_test_suite_addressbook
- 'email' => false, // todo: ie_mail +
ipc_email + ipc_test_suite_email
- 'calendar' => false // todo: ie_calendar +
ipc_calendar + ipc_test_suite_calendar
- );
- $this->error_report = false;
- $this->ipcManager =& CreateObject('phpgwapi.ipc_manager');
- }
-
-
- /**
- * Show applications user interface.
- *
- * @access public
- */
- function init()
- {
- $GLOBALS['phpgw']->common->phpgw_header();
- echo parse_navbar();
-
- if ($this->error_report)
- $old = error_reporting(E_ALL);
-
- if (is_object($this->ipcManager) == false)
- {
- echo 'ipc_manager not found';
- return false;
- }
-
- echo '<table width="100%" border="0"><tr><td><pre>';
- $this->run_test();
- echo '</pre></td></tr></table>';
-
- if ($this->error_report)
- error_reporting($old);
+ /**
+ * @var array $test list of applications to test
+ * @aaccess private
+ */
+ var $test;
+
+ /**
+ * @var boolean $debug flag for debug modus
+ * @aaccess private
+ */
+ var $debug;
+
+ /**
+ * @var object $ipcManager ipc manager object
+ * @aaccess private
+ */
+ var $ipcManager;
+
- $GLOBALS['phpgw']->common->phpgw_footer();
- }
+ /**
+ * Constructor
+ */
+ function ipc_test_suite_ui()
+ {
+ // test the following applications, true->run the test,
false->no test
+ $this->test = array(
+ 'notes' => false, // done
+ 'todo' => false, // done
+ 'bookmarks' => false, // done
+ 'addressbook' => false, // done
+ 'email' => false, // todo
+ 'calendar' => true // done 75%
+ );
+ $this->error_report = false;
+ $this->ipcManager =&
CreateObject('phpgwapi.ipc_manager');
+ }
+ /**
+ * Show applications user interface.
+ */
+ function init()
+ {
+ $GLOBALS['phpgw']->common->phpgw_header();
+ echo parse_navbar();
+
+ if ($this->error_report)
+ $old = error_reporting(E_ALL);
+
+ if (is_object($this->ipcManager) == false)
+ {
+ echo 'ipc_manager not found';
+ return false;
+ }
+
+ echo '<table width="100%" border="0"><tr><td><pre>';
+ $this->run_test();
+ echo '</pre></td></tr></table>';
+
+ if ($this->error_report)
+ error_reporting($old);
+
+ $GLOBALS['phpgw']->common->phpgw_footer();
+ }
- /**
- * Test the applications which were specified in the test variable.
- *
- * @access public
- */
- function run_test()
- {
- foreach($this->test as $test_appl => $test_run)
+ /**
+ * Test the applications which were specified in the test
variable.
+ */
+ function run_test()
{
- if ($test_run == false)
- continue;
- echo '<hr noshade
color="#ff0000"><b>'.$test_appl.'</b><hr noshade>';
- $obj =&
CreateObject('ipc_test_suite.ipc_test_suite_'.$test_appl, array('ipcManager' =>
&$this->ipcManager));
- $obj->test();
- echo '<br>destroyIPC("'.$test_appl.'") => ';
- var_dump($this->ipcManager->destroyIPC($test_appl));
- echo '<hr noshade color="#ff0000"><br><br><br>';
+ foreach($this->test as $test_appl => $test_run)
+ {
+ if ($test_run == false)
+ continue;
+ echo '<hr noshade
color="#ff0000"><b>'.$test_appl.'</b><hr noshade>';
+ $obj =&
CreateObject('ipc_test_suite.ipc_test_suite_'.$test_appl, array('ipcManager' =>
&$this->ipcManager));
+ $obj->test();
+ echo '<br>destroyIPC("'.$test_appl.'") => ';
+
var_dump($this->ipcManager->destroyIPC($test_appl));
+ echo '<hr noshade color="#ff0000"><br><br><br>';
+ }
}
}
-
-}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] ipc_test_suite/inc/class.ipc_test_suite_ui.inc.php, 1.2,
nomail <=