summaryrefslogtreecommitdiff
path: root/tests/unit/SQLMap/ConnectionTest.php
blob: 138505fd41774be00b358765138703a761e93ac1 (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());
	}
}

?>