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