File: TestCase.class.php

package info (click to toggle)
pgfouine 1.0-1.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,200 kB
  • ctags: 10,077
  • sloc: php: 31,976; makefile: 38
file content (40 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (2)
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
<?php

require_once('simpletest/unit_tester.php');
require_once('simpletest/reporter.php');

require_once('../include/lib/common.lib.php');
require_once('../include/base.lib.php');

define('DEBUG', false);
define('PROFILE', false);
define('CONFIG_ONLY_SELECT', false);
define('CONFIG_TIMESTAMP_FILTER', false);
define('CONFIG_DATABASE', false);
define('CONFIG_USER', false);
define('CONFIG_SYSLOG_IDENTITY', 'postgres');
define('CONFIG_KEEP_FORMATTING', 1);

$stderr = fopen('php://stderr', 'w');

$commonTests = &new GroupTest('Common tests');

$commonTests->addTestFile('TestRegExp.class.php');
//$commonTests->addTestFile('TestProfiler.class.php');
$commonTests->addTestFile('TestGenericLogReader.class.php');
$commonTests->addTestFile('TestLogObject.class.php');
$commonTests->addTestFile('TestQueryLogObject.class.php');
$commonTests->addTestFile('TestErrorLogObject.class.php');
$commonTests->addTestFile('TestLogStream.class.php');
$commonTests->addTestFile('TestSlowestQueryList.class.php');
$commonTests->run(new TextReporter());


$postgresqlTests = &new GroupTest('PostgreSQL tests');
$postgresqlTests->addTestFile('TestSyslogPostgreSQLParser.class.php');
$postgresqlTests->addTestFile('TestLogFiles.class.php');
$postgresqlTests->run(new TextReporter());

fclose($stderr);

?>