. */ /** * Doctrine_OneTableOneClassInheritance_TestCase * * @package Doctrine * @author Bjarte Stien Karlsen * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @category Object Relational Mapping * @link www.phpdoctrine.org * @since 1.0 * @version $Revision$ */ class Doctrine_OneTableOneClassInheritance_TestCase extends Doctrine_UnitTestCase { public function prepareData() { } public function prepareTables() { } public function testTableExporting() { $sql = $this->conn->export->exportClassesSql(array('ConcreteInheritanceTestParent', 'ConcreteInheritanceTestChild')); $this->assertEqual($sql[0], 'CREATE TABLE concrete_inheritance_test_parent (id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR(2147483647))'); $this->assertEqual($sql[1], 'CREATE TABLE concrete_inheritance_test_child (id INTEGER PRIMARY KEY AUTOINCREMENT, age INTEGER, name VARCHAR(2147483647))'); } }