Created
August 27, 2010 21:01
-
-
Save caefer/554196 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function setUp() | |
{ | |
$configuration = ProjectConfiguration::getActive(); | |
$databaseManager = new sfDatabaseManager($configuration); | |
$dbh = new Doctrine_Adapter_Mock('sqlite'); | |
$this->conn = Doctrine_Manager::getInstance()->openConnection($dbh, 'doctrine', true); | |
Doctrine_Manager::getInstance()->createDatabases('doctrine'); | |
Doctrine_Core::createTablesFromArray(array('TestRecord')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment