1
0
mirror of https://github.com/dg/dibi.git synced 2025-09-02 10:32:33 +02:00

tests: improved ini quering

This commit is contained in:
David Grudl
2015-11-04 14:36:38 +01:00
parent fef3eccc61
commit 120f0946e0
7 changed files with 21 additions and 34 deletions

View File

@@ -1,22 +1,21 @@
<?php
/**
* @dataProvider ../databases.ini
* @dataProvider ../databases.ini !=odbc
*/
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
if ($config['system'] === 'odbc' || $config['driver'] === 'pdo') {
Tester\Environment::skip('Not supported.');
}
$conn = new DibiConnection($config);
$conn->loadFile(__DIR__ . "/data/$config[system].sql");
$meta = $conn->getDatabaseInfo();
try {
$meta = $conn->getDatabaseInfo();
} catch (DibiNotSupportedException $e) {
Tester\Environment::skip($e->getMessage());
}
Assert::same(3, count($meta->getTables()));