1--TEST--
2GC support for PDO Sqlite driver data
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8// This test was copied from the pdo_sqlite test for sqliteCreateAggregate
9class Obj {
10	public $a;
11	public function callback() { }
12}
13
14$obj = new Obj;
15$obj->a = Pdo::connect('sqlite::memory:');
16
17if (!$obj->a instanceof Pdo\Sqlite) {
18    echo "Wrong class type. Should be Pdo\Sqlite but is " . get_class($obj->a) . "]\n";
19}
20
21$obj->a->createFunction('func1', function() use ($obj) {}, 1);
22$obj->a->createAggregate('func2', function() use ($obj) {}, function() use($obj) {});
23$obj->a->createCollation('col', function() use ($obj) {});
24
25?>
26===DONE===
27--EXPECT--
28===DONE===
29