blob: 5ab1e7e78283d99b97bb21724aa0e42770a8705d (
plain)
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
|
<?php
require_once(dirname(__FILE__).'/BaseTest.php');
/**
* @package System.DataAccess.SQLMap
*/
class ConnectionTest extends BaseTest
{
function __construct()
{
parent::__construct();
$this->initSqlmap();
}
function testOpenConnection()
{
$conn = $this->sqlmap->openConnection();
$this->assertFalse($conn->getIsClosed());
$this->sqlmap->closeConnection();
$this->assertTrue($conn->getIsClosed());
$this->sqlmap->openConnection();
$this->assertFalse($conn->getIsClosed());
}
}
?>
|