summaryrefslogtreecommitdiff
path: root/ext/dba/tests/dba016.phpt
diff options
context:
space:
mode:
authorChristopher Jones <sixd@php.net>2010-03-19 22:15:40 +0000
committerChristopher Jones <sixd@php.net>2010-03-19 22:15:40 +0000
commitad0e1ae3f17d9298470fba9a1dfdd21820e9e529 (patch)
tree0589efb4b2ccdd33f45dc2e5ee5a566c96a5d459 /ext/dba/tests/dba016.phpt
parentf92fae2f6690a10edb547e85f550945a4e2072bd (diff)
downloadphp-git-ad0e1ae3f17d9298470fba9a1dfdd21820e9e529.tar.gz
New tests for existing functionality
Diffstat (limited to 'ext/dba/tests/dba016.phpt')
-rw-r--r--ext/dba/tests/dba016.phpt23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext/dba/tests/dba016.phpt b/ext/dba/tests/dba016.phpt
new file mode 100644
index 0000000000..29726ac11a
--- /dev/null
+++ b/ext/dba/tests/dba016.phpt
@@ -0,0 +1,23 @@
+--TEST--
+DBA lock modifier error message test
+--SKIPIF--
+<?php
+$handler = "flatfile";
+require_once(dirname(__FILE__) .'/skipif.inc');
+?>
+--FILE--
+<?php
+
+$handler = "flatfile";
+require_once(dirname(__FILE__) .'/test.inc');
+echo "database handler: $handler\n";
+
+$db_file1 = dba_popen($db_filename, 'n-t', 'flatfile');
+
+?>
+===DONE===
+--EXPECTF--
+database handler: flatfile
+
+Warning: dba_popen(%stest0.dbm,n-t): You cannot combine modifiers - (no lock) and t (test lock) in %sdba016.php on line %d
+===DONE===