1--TEST--
2PDO_sqlite: Testing invalid callback for sqliteCreateAggregate()
3--SKIPIF--
4<?php if (!extension_loaded('pdo_sqlite')) print 'skip not loaded'; ?>
5--FILE--
6<?php
7
8$pdo = new PDO('sqlite::memory:');
9
10try {
11    $pdo->sqliteCreateAggregate('foo', 'a', '');
12} catch (\TypeError $e) {
13    echo $e->getMessage() . \PHP_EOL;
14}
15try {
16    $pdo->sqliteCreateAggregate('foo', 'strlen', '');
17} catch (\TypeError $e) {
18    echo $e->getMessage() . \PHP_EOL;
19}
20
21?>
22--EXPECT--
23PDO::sqliteCreateAggregate(): Argument #2 ($step) must be a valid callback, function "a" not found or invalid function name
24PDO::sqliteCreateAggregate(): Argument #3 ($finalize) must be a valid callback, function "" not found or invalid function name
25