1--TEST--
2Calling PDO::connect through the wrong classname
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8class MyPdoSqlite extends Pdo\Sqlite {}
9
10$db = MyPdoSqlite::connect('sqlite::memory:');
11if (!$db instanceof MyPdoSqlite) {
12    echo "Wrong class type. Should be MyPdoSqlite but is " . get_class($db) . "\n";
13}
14echo "OK";
15?>
16--EXPECT--
17OK
18