Skip to content

Commit

Permalink
More feedback on which temp db gets created
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Dec 19, 2012
1 parent 6c9be90 commit b170e62
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -162,16 +162,16 @@ protected function bootstrap($frameworkPath, $frameworkHost)

protected function initializeTempDb()
{
file_put_contents('php://stderr', 'Creating temp DB' . PHP_EOL);
$dbname = \SapphireTest::create_temp_db();
file_put_contents('php://stderr', "Creating temp DB $dbname" . PHP_EOL);
\DB::set_alternative_database_name($dbname);

return $dbname;
}

protected function deleteTempDb()
{
file_put_contents('php://stderr', 'Killing temp DB' . PHP_EOL);
file_put_contents('php://stderr', "Killing temp DB" . PHP_EOL);
\SapphireTest::kill_temp_db();
\DB::set_alternative_database_name(null);
}
Expand Down

0 comments on commit b170e62

Please sign in to comment.