[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgroupware/ipc_test_suite/inc/class.ipc_test_suite
From: |
nomail |
Subject: |
[Phpgroupware-cvs] phpgroupware/ipc_test_suite/inc/class.ipc_test_suite.inc.php, 1.1.2.1 |
Date: |
Thu, 20 May 2004 14:03:27 -0000 |
Update of /phpgroupware/ipc_test_suite/inc
Added Files:
Branch: Version-0_9_16-branch
class.ipc_test_suite.inc.php
date: 2004/04/05 19:42:00; author: mkaemmerer; state: Exp; lines: +62 -0
Log Message:
- updated to new version from dirk
=====================================================================
No syntax errors detected in -
=====================================================================
<?php
/**
* 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: class.ipc_test_suite.inc.php,v 1.1.2.1 2004/04/05
19:42:00 mkaemmerer Exp $
*/
/**
* 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)
{
echo '<br><i>'.$test_function.'()</i><hr>';
$result = $this->$test_function();
$this->print_result($result);
echo '<hr noshade>';
}
}
/**
* Output the result of a tested method
* @param mixed $result check and print it out
*/
function print_result($result)
{
if($result)
{
echo '<br><b>OKAY</b><br>';
if (is_array($result) == true)
print_r($result);
else
var_dump($result);
}
else
{
echo '<br><b>ERROR</b><br>';
var_dump($result);
}
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgroupware/ipc_test_suite/inc/class.ipc_test_suite.inc.php, 1.1.2.1,
nomail <=