public function testFileExists()
 {
     $this->assertTrue(File::exists('storage/'));
 }
Esempio n. 2
0
 /**
  * Retorna a conexão
  *
  * @return \SQLite3
  */
 private static function connection()
 {
     if (static::$connection === null) {
         static::$connection = new SQLite3(File::path('storage/database.sqlite'), SQLITE3_OPEN_READWRITE | SQLITE3_OPEN_CREATE, static::DB_CRYPT_KEY);
         if (filesize(File::path('storage/database.sqlite')) < 1) {
             static::schemaBuild();
         }
     }
     return static::$connection;
 }