forked from kerphi/phpfreechat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer_mysql.php
41 lines (34 loc) · 957 Bytes
/
container_mysql.php
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
<?php
require_once "container_generic.php";
class pfcContainerTestcase_Mysql extends pfcContainerTestcase
{
// constructor of the test suite
function pfcContainerTestcase_Mysql($name)
{
$this->type = "Mysql";
$this->pfcContainerTestcase($name);
}
// called before the test functions will be executed
// this function is defined in PHPUnit_TestCase and overwritten
// here
function setUp()
{
pfcContainerTestcase::setUp();
}
// called after the test functions are executed
// this function is defined in PHPUnit_TestCase and overwritten
// here
function tearDown()
{
pfcContainerTestcase::tearDown();
}
}
// on desactive le timeout car se script peut mettre bcp de temps a s'executer
ini_set('max_execution_time', 0);
$suite = new PHPUnit_TestSuite();
$suite->addTestSuite("pfcContainerTestcase_Mysql");
$result =& PHPUnit::run($suite);
echo "<pre>";
print_r($result->toString());
echo "</pre>";
?>