public static function setUpBeforeClass() { $configuration = new DatabaseConfiguration(); $configuration->setDriver(DriverType::SQLITE); $configuration->setDatabase('test.db'); $configuration->register(); // Create a db connection and tell Phactory to use it $pdo = new SQLiteConnection(); self::$phactory = new Phactory($pdo); $pdo->exec("CREATE TABLE IF NOT EXISTS tests ( id INTEGER PRIMARY KEY, content TEXT )"); // Reset any existing blueprints and empty any tables Phactory has used self::$phactory->reset(); // Define default values for each test we will create self::$phactory->define('test', array('content' => 'Test Content $n')); }