File: tests.php

package info (click to toggle)
php-auth 1.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 480 kB
  • ctags: 764
  • sloc: php: 3,296; xml: 952; makefile: 65; sql: 4
file content (48 lines) | stat: -rw-r--r-- 1,360 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php

include_once 'Auth.php';
include_once 'TestAuthContainer.php';
include_once 'FileContainer.php';
include_once 'DBContainer.php';
include_once 'DBLiteContainer.php';
include_once 'MDBContainer.php';
include_once 'MDB2Container.php';
include_once 'POP3Container.php';
include_once 'POP3aContainer.php';
include_once 'IMAPContainer.php';
include_once 'PHPUnit.php';


function error($err){
    print "Error\n";
    print "Code:".trim($err->getCode())."\n";
    print "Message:".trim($err->getMessage())."\n";
    #print "UserInfo:".trim($err->getUserInfo())."\n";
    #print "DebugInfo:".trim($err->getDebugInfo())."\n";

}

#error_reporting(0);
PEAR::setErrorHandling(PEAR_ERROR_PRINT, "\nPear Error:%s \n");
#PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "error");

set_time_limit(0);

$suite = new PHPUnit_TestSuite();

// File Container
#$suite->addTest(new PHPUnit_TestSuite('IMAPContainer'));
$suite->addTest(new PHPUnit_TestSuite('FileContainer'));
$suite->addTest(new PHPUnit_TestSuite('DBContainer'));
//$suite->addTest(new PHPUnit_TestSuite('DBLiteContainer'));
// MDB Container
$suite->addTest(new PHPUnit_TestSuite('MDBContainer'));
// MDB2 Container
$suite->addTest(new PHPUnit_TestSuite('MDB2Container'));
// POP3 Container
$suite->addTest(new PHPUnit_TestSuite('POP3Container'));

$result = PHPUnit::run($suite);
echo $result->toString();

?>