On Wed, Apr 30, 2008 at 10:56 AM, Grégoire <[EMAIL PROTECTED]> wrote:

>  I'm trying to accessing to my database in a unit test. I use Lime for
>  those tests. I have the following exception when I execute my test :

You can use the functional bootstrap:

<?php
$app = 'frontend'; // <-- Your tested app name goes here
$sf_root = dirname(__FILE__).'/../..';
require_once($sf_root.'/lib/symfony/vendor/lime/lime.php');
include($sf_root.'/test/bootstrap/functional.php');

$databaseManager = new sfDatabaseManager();
$databaseManager->initialize();
...

HTH

++

-- 
Nicolas Perriault
http://prendreuncafe.com/blog
GSM: 06.60.92.08.67

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to