summaryrefslogtreecommitdiff
path: root/ext/pdo_sqlite/tests
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pdo_sqlite/tests')
-rw-r--r--ext/pdo_sqlite/tests/bug43831.phpt2
-rw-r--r--ext/pdo_sqlite/tests/bug46542.phpt6
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt2
-rw-r--r--ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt2
6 files changed, 15 insertions, 1 deletions
diff --git a/ext/pdo_sqlite/tests/bug43831.phpt b/ext/pdo_sqlite/tests/bug43831.phpt
index 1132e9b76..2746e7c17 100644
--- a/ext/pdo_sqlite/tests/bug43831.phpt
+++ b/ext/pdo_sqlite/tests/bug43831.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #43831 ($this gets mangled when extending PDO with persistent connection)
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
diff --git a/ext/pdo_sqlite/tests/bug46542.phpt b/ext/pdo_sqlite/tests/bug46542.phpt
index ccde633dc..2de0c0519 100644
--- a/ext/pdo_sqlite/tests/bug46542.phpt
+++ b/ext/pdo_sqlite/tests/bug46542.phpt
@@ -9,12 +9,16 @@ if (!extension_loaded('pdo_sqlite')) print 'skip not loaded';
class A extends PDO
{ function __call($m, $p) {print __CLASS__."::$m\n";} }
-$a = new A('sqlite:dummy.db');
+$a = new A('sqlite:' . __DIR__ . '/dummy.db');
$a->truc();
$a->TRUC();
?>
+--CLEAN--
+<?php
+unlink(__DIR__ . '/dummy.db');
+?>
--EXPECT--
A::truc
A::TRUC
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
index 9596aea30..975dcd96b 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_createaggregate.phpt
@@ -1,5 +1,7 @@
--TEST--
PDO_sqlite: Testing sqliteCreateAggregate()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
index c742c0a9e..b67587998 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction.phpt
@@ -1,5 +1,7 @@
--TEST--
PDO_sqlite: Testing sqliteCreateFunction()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
index a4ed2b535..2ff0acd77 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_lastinsertid.phpt
@@ -1,5 +1,7 @@
--TEST--
PDO_sqlite: Testing lastInsertId()
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php
diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
index 524744051..101cc73cb 100644
--- a/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
+++ b/ext/pdo_sqlite/tests/pdo_sqlite_transaction.phpt
@@ -1,5 +1,7 @@
--TEST--
PDO_sqlite: Testing transaction
+--SKIPIF--
+<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
--FILE--
<?php