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

Connection, Result: added format 'native'

This commit is contained in:
David Grudl
2020-10-08 18:02:34 +02:00
parent a9e90d0b22
commit c464960239
3 changed files with 27 additions and 15 deletions

View File

@@ -24,6 +24,17 @@ class MockResult extends Dibi\Result
}
test('', function () {
$result = new MockResult;
$result->setType('col', Type::TEXT);
$result->setFormat(Type::TEXT, 'native');
Assert::same(['col' => null], $result->test(['col' => null]));
Assert::same(['col' => true], $result->test(['col' => true]));
Assert::same(['col' => false], $result->test(['col' => false]));
});
test('', function () {
$result = new MockResult;
$result->setType('col', Type::BOOL);