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 used for connecting to the "sqlite" driver, either call Pdo\Sqlite::connect() or PDO::connect() instead
19