Skip to content

Commit cb13f83

Browse files
author
Yasuo Ohgaki
committed
Add user contributed test. Bug #61748
1 parent 4590070 commit cb13f83

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
PDO_sqlite: Testing sqliteCreateFunction() produces warning when
3+
un-callable function passed
4+
--CREDITS--
5+
Chris MacPherson [email protected]
6+
--SKIPIF--
7+
<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
8+
--FILE--
9+
<?php
10+
11+
$db = new PDO( 'sqlite::memory:');
12+
13+
$db->sqliteCreateFunction('bar-alias', 'bar');
14+
15+
?>
16+
--EXPECTF--
17+
Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d

0 commit comments

Comments
 (0)