dis-bench / src /php /php-src /ext /pdo_dblib /tests /dbversion.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
366 Bytes
--TEST--
PDO_DBLIB: \PDO::DBLIB_ATTR_VERSION exposes a string
--EXTENSIONS--
pdo_dblib
--SKIPIF--
<?php
require __DIR__ . '/config.inc';
getDbConnection();
?>
--FILE--
<?php
require __DIR__ . '/config.inc';
$db = getDbConnection();
$version = $db->getAttribute(PDO::DBLIB_ATTR_VERSION);
var_dump(is_string($version) && strlen($version));
?>
--EXPECT--
bool(true)