1--TEST--
2PDO_sqlite: Testing sqliteCreateFunction() produces warning when
3un-callable function passed
4--CREDITS--
5Chris MacPherson chris@kombine.co.uk
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
13try {
14    $db->sqliteCreateFunction('bar-alias', 'bar');
15} catch (\TypeError $e) {
16    echo $e->getMessage() . \PHP_EOL;
17}
18
19?>
20--EXPECT--
21PDO::sqliteCreateFunction(): Argument #2 ($callback) must be a valid callback, function "bar" not found or invalid function name
22