Created
November 8, 2010 19:24
-
-
Save wowo/668127 to your computer and use it in GitHub Desktop.
Plik model.php używany jako bootstrap dla testów lime
This file contains 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
<?php | |
$ROOT_DIR = sprintf("%s/../../", dirname(__FILE__)); | |
$TEST_DIR = sprintf("%s/test/", $ROOT_DIR); | |
include sprintf("%s/bootstrap/unit.php", $TEST_DIR); | |
$configuration = ProjectConfiguration::getApplicationConfiguration("car", "test", true); | |
$dbManager = new sfDatabaseManager($configuration); | |
Doctrine::createTablesFromModels(sprintf("%s/lib/model", $ROOT_DIR)); | |
Doctrine::loadData(sprintf("%s/fixtures", $TEST_DIR)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment