2006-11-22 00:19:23 +00:00
|
|
|
<?php
|
2006-11-22 00:26:34 +00:00
|
|
|
class Doctrine_Export_Pgsql_TestCase extends Doctrine_Export_TestCase {
|
2006-11-22 00:19:23 +00:00
|
|
|
public function __construct() {
|
|
|
|
parent::__construct('pgsql');
|
|
|
|
}
|
2006-11-22 00:26:34 +00:00
|
|
|
public function testCreateDatabaseExecutesSql() {
|
|
|
|
$this->export->createDatabase('db');
|
2006-11-22 00:19:23 +00:00
|
|
|
|
2006-11-22 00:26:34 +00:00
|
|
|
$this->assertEqual($this->adapter->pop(), 'CREATE DATABASE db');
|
2006-11-22 00:19:23 +00:00
|
|
|
}
|
2006-11-22 00:26:34 +00:00
|
|
|
public function testDropDatabaseExecutesSql() {
|
|
|
|
$this->export->dropDatabase('db');
|
2006-11-22 00:19:23 +00:00
|
|
|
|
2006-11-22 00:26:34 +00:00
|
|
|
$this->assertEqual($this->adapter->pop(), 'DROP DATABASE db');
|
2006-11-22 00:19:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
?>
|