1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-13 01:24:06 +02:00

added Driver::escapeDateInterval() (BC break) (#334)

This commit is contained in:
Jan Pecha
2019-08-30 18:25:15 +02:00
committed by David Grudl
parent 78d6603bb0
commit 369768a62a
11 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
$conn = new Dibi\Connection($config);
$translator = new Dibi\Translator($conn);
switch ($config['system']) {
default:
Assert::exception(function () use ($translator) {
$translator->formatValue(new DateInterval('PT10H20M30S'), null);
}, Dibi\Exception::class);
}