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

whitespace

This commit is contained in:
David Grudl
2017-09-21 14:17:14 +02:00
parent 4472fb3a3d
commit f0d08a990c

View File

@@ -18,7 +18,8 @@ Assert::same(
$conn->translate('REPLACE INTO [products]', [ $conn->translate('REPLACE INTO [products]', [
'title' => 'Drticka', 'title' => 'Drticka',
'price' => 318, 'price' => 318,
])); ])
);
// multiple INSERT command // multiple INSERT command
@@ -51,7 +52,8 @@ Assert::same(
$conn->translate('UPDATE [colors] SET', [ $conn->translate('UPDATE [colors] SET', [
'color' => 'blue', 'color' => 'blue',
'order' => 12, 'order' => 12,
], 'WHERE [id]=%i', 123)); ], 'WHERE [id]=%i', 123)
);
// IN array // IN array
@@ -194,7 +196,8 @@ Assert::same(
'b8%d' => null, 'b8%d' => null,
'b9%t' => null, 'b9%t' => null,
'c1%t' => new DateTime('1212-09-26 16:51:34.0124'), 'c1%t' => new DateTime('1212-09-26 16:51:34.0124'),
])); ])
);
Assert::exception(function () use ($conn) { Assert::exception(function () use ($conn) {
$conn->translate('SELECT %s', new DateTime('1212-09-26')); $conn->translate('SELECT %s', new DateTime('1212-09-26'));
@@ -469,10 +472,10 @@ Assert::same(
$conn->translate('INSERT INTO [products]', [ $conn->translate('INSERT INTO [products]', [
'product_id' => 1, 'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'], 'title' => ['SHA1(%s)', 'Test product'],
], [ ], [
'product_id' => 1, 'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'], 'title' => ['SHA1(%s)', 'Test product'],
]) ])
); );
Assert::same( Assert::same(
@@ -480,7 +483,7 @@ Assert::same(
$conn->translate('UPDATE [products]', [ $conn->translate('UPDATE [products]', [
'product_id' => 1, 'product_id' => 1,
'title' => ['SHA1(%s)', 'Test product'], 'title' => ['SHA1(%s)', 'Test product'],
]) ])
); );
@@ -564,5 +567,5 @@ Assert::same(
'spec2%f' => 1000.00, 'spec2%f' => 1000.00,
'spec3%i' => 10000, 'spec3%i' => 10000,
'spec4' => 10000, 'spec4' => 10000,
], 'WHERE [price]=%f', 123.5) ], 'WHERE [price]=%f', 123.5)
); );