| 1 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
include_once 'Auth.php';
|
|
|
4 |
include_once 'TestAuthContainer.php';
|
|
|
5 |
include_once 'FileContainer.php';
|
|
|
6 |
include_once 'DBContainer.php';
|
|
|
7 |
include_once 'DBLiteContainer.php';
|
|
|
8 |
include_once 'MDBContainer.php';
|
|
|
9 |
include_once 'MDB2Container.php';
|
|
|
10 |
include_once 'POP3Container.php';
|
|
|
11 |
include_once 'POP3aContainer.php';
|
|
|
12 |
include_once 'IMAPContainer.php';
|
|
|
13 |
include_once 'PHPUnit.php';
|
|
|
14 |
|
|
|
15 |
|
|
|
16 |
function error($err){
|
|
|
17 |
print "Error\n";
|
|
|
18 |
print "Code:".trim($err->getCode())."\n";
|
|
|
19 |
print "Message:".trim($err->getMessage())."\n";
|
|
|
20 |
#print "UserInfo:".trim($err->getUserInfo())."\n";
|
|
|
21 |
#print "DebugInfo:".trim($err->getDebugInfo())."\n";
|
|
|
22 |
|
|
|
23 |
}
|
|
|
24 |
|
|
|
25 |
#error_reporting(0);
|
|
|
26 |
PEAR::setErrorHandling(PEAR_ERROR_PRINT, "\nPear Error:%s \n");
|
|
|
27 |
#PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "error");
|
|
|
28 |
|
|
|
29 |
set_time_limit(0);
|
|
|
30 |
|
|
|
31 |
$suite = new PHPUnit_TestSuite();
|
|
|
32 |
|
|
|
33 |
// File Container
|
|
|
34 |
#$suite->addTest(new PHPUnit_TestSuite('IMAPContainer'));
|
|
|
35 |
$suite->addTest(new PHPUnit_TestSuite('FileContainer'));
|
|
|
36 |
$suite->addTest(new PHPUnit_TestSuite('DBContainer'));
|
|
|
37 |
//$suite->addTest(new PHPUnit_TestSuite('DBLiteContainer'));
|
|
|
38 |
// MDB Container
|
|
|
39 |
$suite->addTest(new PHPUnit_TestSuite('MDBContainer'));
|
|
|
40 |
// MDB2 Container
|
|
|
41 |
$suite->addTest(new PHPUnit_TestSuite('MDB2Container'));
|
|
|
42 |
// POP3 Container
|
|
|
43 |
$suite->addTest(new PHPUnit_TestSuite('POP3Container'));
|
|
|
44 |
|
|
|
45 |
$result = PHPUnit::run($suite);
|
|
|
46 |
echo $result->toString();
|
|
|
47 |
|
|
|
48 |
?>
|