diff --git a/tests/Export/PgsqlTestCase.php b/tests/Export/PgsqlTestCase.php index 77c1c7b38..7f512c4e6 100644 --- a/tests/Export/PgsqlTestCase.php +++ b/tests/Export/PgsqlTestCase.php @@ -1,15 +1,50 @@ . + */ + +/** + * Doctrine_Export_Mysql_TestCase + * + * @package Doctrine + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Export_Pgsql_TestCase extends Doctrine_UnitTestCase +{ + public function testCreateDatabaseExecutesSql() + { $this->export->createDatabase('db'); $this->assertEqual($this->adapter->pop(), 'CREATE DATABASE db'); } - public function testDropDatabaseExecutesSql() { + public function testDropDatabaseExecutesSql() + { $this->export->dropDatabase('db'); $this->assertEqual($this->adapter->pop(), 'DROP DATABASE db'); } - public function testCreateTableSupportsAutoincPks() { + public function testCreateTableSupportsAutoincPks() + { $name = 'mytable'; $fields = array('id' => array('type' => 'integer', 'unsigned' => 1, 'autoincrement' => true)); @@ -19,7 +54,8 @@ class Doctrine_Export_Pgsql_TestCase extends Doctrine_UnitTestCase { $this->assertEqual($this->adapter->pop(), 'CREATE TABLE mytable (id SERIAL, PRIMARY KEY(id))'); } - public function testCreateTableSupportsDefaultAttribute() { + public function testCreateTableSupportsDefaultAttribute() + { $name = 'mytable'; $fields = array('name' => array('type' => 'char', 'length' => 10, 'default' => 'def'), 'type' => array('type' => 'integer', 'length' => 3, 'default' => 12) @@ -30,7 +66,8 @@ class Doctrine_Export_Pgsql_TestCase extends Doctrine_UnitTestCase { $this->assertEqual($this->adapter->pop(), 'CREATE TABLE mytable (name CHAR(10) DEFAULT \'def\', type INT DEFAULT 12, PRIMARY KEY(name, type))'); } - public function testCreateTableSupportsMultiplePks() { + public function testCreateTableSupportsMultiplePks() + { $name = 'mytable'; $fields = array('name' => array('type' => 'char', 'length' => 10), 'type' => array('type' => 'integer', 'length' => 3));