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