[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.inc.php, 1.2
From: |
nomail |
Subject: |
[Phpgroupware-cvs] ipc_test_suite/inc/class.ipc_test_suite.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.inc.php
date: 2004/05/26 14:36:25; author: mkaemmerer; state: Exp; lines: +29 -12
Log Message:
- updated
=====================================================================
Index: ipc_test_suite/inc/class.ipc_test_suite.inc.php
diff -u ipc_test_suite/inc/class.ipc_test_suite.inc.php:1.1
ipc_test_suite/inc/class.ipc_test_suite.inc.php:1.2
--- ipc_test_suite/inc/class.ipc_test_suite.inc.php:1.1 Tue Dec 23 16:23:57 2003
+++ ipc_test_suite/inc/class.ipc_test_suite.inc.php Wed May 26 14:36:25 2004
@@ -1,21 +1,33 @@
<?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$
- */
+ /**
+ * 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$
+ */
+ /**
+ * IPC Test Suite
+ * @abstract
+ */
class ipc_test_suite
{
+ /**
+ * var array $test list of methods to call during the test
+ */
var $test = array();
-
+
+ /**
+ * Constructor
+ */
function ipc_test_suite()
{}
+ /**
+ * Test all methods which are specified in class var test.
+ */
function test()
{
foreach($this->test as $test_function)
@@ -27,9 +39,13 @@
}
}
+ /**
+ * Output the result of a tested method
+ * @param mixed $result check and print it out
+ */
function print_result($result)
{
- if ($result)
+ if($result)
{
echo '<br><b>OKAY</b><br>';
if (is_array($result) == true)
@@ -39,7 +55,8 @@
}
else
{
- echo '<br><b>ERROR</b>';
+ echo '<br><b>ERROR</b><br>';
+ var_dump($result);
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] ipc_test_suite/inc/class.ipc_test_suite.inc.php, 1.2,
nomail <=