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