. */ /** * Doctrine_Import_TestCase * * @package Doctrine * @author Konsta Vesterinen * @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_Import_TestCase extends Doctrine_UnitTestCase { public function prepareTables() { } public function prepareData() { } public function testImport() { $this->dbh = new PDO('sqlite::memory:'); $this->dbh->exec('CREATE TABLE import_test_user (id INTEGER PRIMARY KEY, name TEXT)'); $this->conn = Doctrine_Manager::connection($this->dbh); $this->conn->import->import('Import/_files'); $this->assertTrue(file_exists('Import/_files/ImportTestUser.php')); } }