DB::disconnect() allows easy disconnecting from mysql

This commit is contained in:
Sergey Tsalkov
2013-03-19 12:02:47 -07:00
parent ce11e65070
commit e94f75fe2a
2 changed files with 15 additions and 1 deletions

View File

@@ -22,6 +22,10 @@ class BasicTest extends SimpleTest {
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`signature` VARCHAR( 255 ) NULL DEFAULT 'donewriting'
) ENGINE = InnoDB");
$mysqli = DB::get();
DB::disconnect();
@$this->assert($mysqli->server_info === null);
}
function test_1_5_empty_table() {