1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-31 01:39:46 +02:00

tests: improved ini quering, removed duplicated tests

This commit is contained in:
David Grudl
2015-11-04 14:36:38 +01:00
parent 6730fb4633
commit 5aab1ff023
17 changed files with 28 additions and 240 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 Dibi\Connection($config);
$conn->loadFile(__DIR__ . "/data/$config[system].sql");
$meta = $conn->getDatabaseInfo();
try {
$meta = $conn->getDatabaseInfo();
} catch (Dibi\NotSupportedException $e) {
Tester\Environment::skip($e->getMessage());
}
Assert::same(3, count($meta->getTables()));