travis: update
[m6w6/ext-psi] / tests / sqlite / sqlite001.phpt
index a5e131674cd0ca2e072b795a732f8c0ef60ac4f1..c25723f6a53a0d0771d8b1eede653ace244fcd36 100644 (file)
@@ -2,11 +2,7 @@
 sqlite3
 --INI--
 psi.directory={PWD}:{PWD}/../../psi.d
---SKIPIF--
-<?php
-extension_loaded("psi") or printf("%s\n", "skip - need ext/psi");
-function_exists("sqlite3\\open") or printf("%s\n", "skip - need libsqlite3");
-?>
+psi.blacklist.decls="sqlite3_str*,sqlite3_*serialize,sqlite3_stmt_scanstatus*,sqlite3_snapshot*,sqlite3_win32*,sqlite_normalize*"
 --FILE--
 ===TEST===
 <?php
@@ -52,6 +48,11 @@ if ($rc) {
 
 sqlite3\close($db);
 
+$rc = sqlite3\exec($db, "SELECT *", "callback", new stdClass, $error);
+if ($rc) {
+       printf("%s: '%s'\n", sqlite3\errstr($rc), $error);
+}
+
 ?>
 ===DONE===
 --EXPECTF--
@@ -72,7 +73,8 @@ string(%d) "3.%d.%s"
 2: id = 3
 2: data = three
 
-SQL logic error or missing database: 'no tables specified'
+SQL logic error%s
+%s: ''
 ===DONE===
 --CLEAN--
 <?php