1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/pdo_sqlite/tests/subclasses/pdosqlite_007.phpt

19 lines
383 B
PHP

--TEST--
Calling PDO::connect through the wrong classname
--EXTENSIONS--
pdo_sqlite
--FILE--
<?php
class MyPDO extends PDO {}
try {
MyPDO::connect('sqlite::memory:');
} catch (PDOException $e) {
echo $e->getMessage() . "\n";
}
?>
--EXPECT--
MyPDO::connect() cannot be used for connecting to the "sqlite" driver, either call Pdo\Sqlite::connect() or PDO::connect() instead