xref: /PHP-8.2/ext/pdo_dblib/tests/dbversion.phpt (revision 74859783)
1--TEST--
2PDO_DBLIB: \PDO::DBLIB_ATTR_VERSION exposes a string
3--EXTENSIONS--
4pdo_dblib
5--SKIPIF--
6<?php
7require __DIR__ . '/config.inc';
8?>
9--FILE--
10<?php
11require __DIR__ . '/config.inc';
12
13$version = $db->getAttribute(PDO::DBLIB_ATTR_VERSION);
14var_dump(is_string($version) && strlen($version));
15
16?>
17--EXPECT--
18bool(true)
19