1
0
Fork 0
SVEN/webseite/sys/sources/envms-fluentpdo/tests/27-fetch-all-with-params.phpt

30 lines
474 B
PHP

--TEST--
fetch all with params
--FILE--
<?php
include_once dirname(__FILE__) . "/connect.inc.php";
/* @var Envms\FluentPDO\Query */
$result = $fluent->from('user')->fetchAll('id', 'type, name');
print_r($result);
?>
--EXPECTF--
Array
(
[1] => Array
(
[id] => 1
[type] => admin
[name] => Marek
)
[2] => Array
(
[id] => 2
[type] => author
[name] => Robert
)
)