1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-09 23:56:58 +02:00

dibi: monostate implemented via __callStatic

This commit is contained in:
David Grudl
2018-04-06 02:19:36 +02:00
parent 6575630cad
commit 2d523f6034
2 changed files with 44 additions and 207 deletions

18
tests/dibi/dibi.phpt Normal file
View File

@@ -0,0 +1,18 @@
<?php
/**
* @dataProvider ../databases.ini
*/
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
dibi::connect($config);
dibi::loadFile(__DIR__ . "/data/$config[system].sql");
dibi::query('INSERT INTO products', [
'title' => 'Test product',
]);
Assert::same(1, dibi::getAffectedRows());