public function testEntireSchema()
 {
     global $IP;
     $result = Sqlite::checkSqlSyntax("{$IP}/maintenance/tables.sql");
     if ($result !== true) {
         $this->fail($result);
     }
     $this->assertTrue(true);
     // avoid test being marked as incomplete due to lack of assertions
 }
Beispiel #2
0
 private function checkSyntax()
 {
     if (!Sqlite::IsPresent()) {
         $this->error("Error: SQLite support not found\n");
     }
     $files = array($this->getOption('check-syntax'));
     $files += $this->mArgs;
     $result = Sqlite::checkSqlSyntax($files);
     if ($result === true) {
         $this->output("SQL syntax check: no errors detected.\n");
     } else {
         $this->error("Error: {$result}\n");
     }
 }