php-sqlsrv/test/functional/pdo_sqlsrv/skipif_unix.inc

10 lines
217 B
PHP
Raw Normal View History

2017-05-04 19:21:52 +02:00
<?php
if (!(strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN')) {
die("Skip test on windows only.");
}
2017-05-04 19:21:52 +02:00
if (!extension_loaded("pdo") || !extension_loaded('pdo_sqlsrv')) {
die("skip extension not loaded");
}