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:
18
tests/dibi/dibi.phpt
Normal file
18
tests/dibi/dibi.phpt
Normal 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());
|
Reference in New Issue
Block a user