Skip to content

Instantly share code, notes, and snippets.

@wowo
Created November 8, 2010 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wowo/668127 to your computer and use it in GitHub Desktop.
Save wowo/668127 to your computer and use it in GitHub Desktop.
Plik model.php używany jako bootstrap dla testów lime
<?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