summaryrefslogtreecommitdiff
path: root/ext/sqlite3/tests/sqlite3_open_empty_string.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/sqlite3/tests/sqlite3_open_empty_string.phpt')
-rw-r--r--ext/sqlite3/tests/sqlite3_open_empty_string.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/sqlite3/tests/sqlite3_open_empty_string.phpt b/ext/sqlite3/tests/sqlite3_open_empty_string.phpt
new file mode 100644
index 0000000..86868ee
--- /dev/null
+++ b/ext/sqlite3/tests/sqlite3_open_empty_string.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SQLite3::open test with empty string argument via the constructor
+--CREDITS--
+Thijs Feryn <thijs@feryn.eu>
+#TestFest PHPBelgium 2009
+--SKIPIF--
+<?php require_once(dirname(__FILE__) . '/skipif.inc'); ?>
+--FILE--
+<?php
+try{
+ $db = new SQLite3('');
+} catch(Exception $e) {
+ echo $e->getMessage().PHP_EOL;
+}
+echo "Done\n";
+?>
+--EXPECTF--
+Unable to expand filepath
+Done