xref: /PHP-8.3/ext/pdo_sqlite/tests/bug50728.phpt (revision 74859783)
1--TEST--
2Bug #50728 (All PDOExceptions hardcode 'code' property to 0)
3--EXTENSIONS--
4pdo_sqlite
5--FILE--
6<?php
7try {
8    $a = new PDO("sqlite:/this/path/should/not/exist.db");
9} catch (PDOException $e) {
10    var_dump($e->getCode());
11}
12?>
13--EXPECT--
14int(14)
15