mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 02:43:09 +01:00
18 lines
459 B
PHP
18 lines
459 B
PHP
<?php
|
|
|
|
/**
|
|
* @dataProvider ../databases.ini mysql-pdo
|
|
*/
|
|
|
|
use Tester\Assert;
|
|
|
|
require __DIR__ . '/bootstrap.php';
|
|
|
|
$conn = new Dibi\Connection($config);
|
|
|
|
$conn->query('USE dibi_test');
|
|
$conn->query('DROP TABLE IF EXISTS timetest');
|
|
$conn->query('CREATE TABLE timetest (col TIME NOT NULL) ENGINE=InnoDB');
|
|
$conn->query('INSERT INTO timetest VALUES ("12:30:40")');
|
|
Assert::equal(new DateInterval('PT12H30M40S'), $conn->fetchSingle('SELECT * FROM timetest'));
|