public function __construct(array $descriptor = NULL)
 {
     $db_file = '/tmp/amazingdreams-auth-unittest.db';
     if (file_exists($db_file)) {
         unlink($db_file);
     }
     parent::__construct(array('dbname' => $db_file));
 }
Example #2
0
 public function __construct(array $descriptor)
 {
     $this->_mDescriptor = $descriptor;
     try {
         $this->_dbExist = true;
         parent::__construct($descriptor);
     } catch (\Exception $e) {
         //DB not exists !
         if ($e->getCode() == 1049) {
             $this->_dbExist = false;
         }
     }
 }