summaryrefslogtreecommitdiff
path: root/ext/sqlite
diff options
context:
space:
mode:
authorMarcus Boerger <helly@php.net>2005-02-19 14:02:24 +0000
committerMarcus Boerger <helly@php.net>2005-02-19 14:02:24 +0000
commit253cd12753e4a2667fcb2af1cef1160132921d3e (patch)
treea6ff9c8f4b0ce2ae92244aefe1d01eb31a49e624 /ext/sqlite
parentdc4c0cfac1378679635a48dc40e1e60a1757134f (diff)
downloadphp-git-253cd12753e4a2667fcb2af1cef1160132921d3e.tar.gz
- Regroup and add a test
Diffstat (limited to 'ext/sqlite')
-rwxr-xr-xext/sqlite/tests/sqlite_spl_001.phpt (renamed from ext/sqlite/tests/sqlite_oo_031.phpt)2
-rwxr-xr-xext/sqlite/tests/sqlite_spl_002.phpt (renamed from ext/sqlite/tests/sqlite_oo_032.phpt)2
-rwxr-xr-xext/sqlite/tests/sqlite_spl_003.phpt28
3 files changed, 30 insertions, 2 deletions
diff --git a/ext/sqlite/tests/sqlite_oo_031.phpt b/ext/sqlite/tests/sqlite_spl_001.phpt
index f0ed40a425..4afb8cb712 100755
--- a/ext/sqlite/tests/sqlite_oo_031.phpt
+++ b/ext/sqlite/tests/sqlite_spl_001.phpt
@@ -1,5 +1,5 @@
--TEST--
-sqlite-oo: and spl
+sqlite-spl: Iteration
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("sqlite")) print "skip";
diff --git a/ext/sqlite/tests/sqlite_oo_032.phpt b/ext/sqlite/tests/sqlite_spl_002.phpt
index 15d4c9c952..c60ca01e02 100755
--- a/ext/sqlite/tests/sqlite_oo_032.phpt
+++ b/ext/sqlite/tests/sqlite_spl_002.phpt
@@ -1,5 +1,5 @@
--TEST--
-sqlite-oo: and SPL Countable
+sqlite-spl: Countable
--SKIPIF--
<?php # vim:ft=php
if (!extension_loaded("sqlite")) print "skip";
diff --git a/ext/sqlite/tests/sqlite_spl_003.phpt b/ext/sqlite/tests/sqlite_spl_003.phpt
new file mode 100755
index 0000000000..267ceff50c
--- /dev/null
+++ b/ext/sqlite/tests/sqlite_spl_003.phpt
@@ -0,0 +1,28 @@
+--TEST--
+sqlite-spl: Exception
+--SKIPIF--
+<?php # vim:ft=php
+if (!extension_loaded("sqlite")) print "skip";
+if (!extension_loaded("spl")) print "skip SPL is not present";
+?>
+--FILE--
+<?php
+
+try
+{
+ $db = sqlite_factory();
+}
+catch(SQLiteException $e)
+{
+ $parents = class_parents($e);
+ if (array_key_exists('RuntimeException', $parents))
+ {
+ echo "GOOD\n";
+ }
+}
+
+?>
+===DONE===
+--EXPECT--
+GOOD
+===DONE===