1--TEST--
2Calling PDO::connect through the wrong classname
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7
8class MyPDO extends PDO {}
9
10try {
11    MyPDO::connect('sqlite::memory:');
12} catch (PDOException $e) {
13    echo $e->getMessage() . "\n";
14}
15
16?>
17--EXPECT--
18MyPDO::connect() cannot be called when connecting to the "sqlite" driver, either PdoSqlite::connect() or PDO::connect() must be called instead
19