예제 #1
0
 public function testConstructor()
 {
     @unlink(__DIR__ . '/test.sqlite');
     $this->assertFalse(file_exists(__DIR__ . '/test.sqlite'), "File still exists.");
     $sql = new SQLite(__DIR__ . '/test.sqlite');
     $sql->open();
     $sql->close();
     $this->assertTrue(file_exists(__DIR__ . '/test.sqlite'), "File not created.");
 }