From cb13f8318b39f72798c3756dcfe55daae4c932e2 Mon Sep 17 00:00:00 2001 From: Yasuo Ohgaki Date: Fri, 2 Aug 2013 09:52:08 +0900 Subject: [PATCH] Add user contributed test. Bug #61748 --- .../tests/pdo_sqlite_createfunction_002.phpt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt diff --git a/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt new file mode 100644 index 00000000000..a1d890ac1b5 --- /dev/null +++ b/ext/pdo_sqlite/tests/pdo_sqlite_createfunction_002.phpt @@ -0,0 +1,17 @@ +--TEST-- +PDO_sqlite: Testing sqliteCreateFunction() produces warning when +un-callable function passed +--CREDITS-- +Chris MacPherson chris@kombine.co.uk +--SKIPIF-- + +--FILE-- +sqliteCreateFunction('bar-alias', 'bar'); + +?> +--EXPECTF-- +Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d