mirror of
https://github.com/dg/dibi.git
synced 2025-08-04 21:28:02 +02:00
tests: not supported drivers are not skipped (except for 'mysql' on PHP 7)
This commit is contained in:
@@ -35,14 +35,14 @@ if ($config['system'] === 'odbc') {
|
|||||||
$config['dsn'] = str_replace('data/odbc.mdb', TEMP_DIR . '/odbc.mdb', $config['dsn']);
|
$config['dsn'] = str_replace('data/odbc.mdb', TEMP_DIR . '/odbc.mdb', $config['dsn']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($config['driver'] === 'mysql' && PHP_VERSION_ID >= 70000) {
|
||||||
try {
|
Tester\Environment::skip('mysql driver is not supported on PHP 7');
|
||||||
new Dibi\Connection($config);
|
|
||||||
} catch (Dibi\NotSupportedException $e) {
|
|
||||||
Tester\Environment::skip($e->getMessage());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$conn = new Dibi\Connection($config);
|
||||||
|
|
||||||
|
|
||||||
function test(Closure $function)
|
function test(Closure $function)
|
||||||
{
|
{
|
||||||
$function();
|
$function();
|
||||||
|
Reference in New Issue
Block a user