Database queries with Laravel's Connection class

Code
<?php

use Illuminate\Database\Connection;

$pdo = new PDO('mysql:dbname=foo;host=127.0.0.1');

$connection = new Connection($pdo);

$result $connection->select(
    
'SELECT * FROM test WHERE id < :id'
    [
'id' => 4]
);
dump($result);

// dry run
$queries $connection->pretend(function(Connection $c) {
    
$c->select('SELECT * FROM test');
    
$c->delete('DELETE FROM test WHERE id = :id', ['id' => 1]);
    
$c->select('SELECT * FROM test');
});
dump($queries);
Result
array:3 [
0 => {#369
+"id": "1"
+"name": "foo"
+"creation_date": "2014-07-20 11:37:29"
}
1 => {#360
+"id": "2"
+"name": "test"
+"creation_date": "2014-07-20 10:40:22"
}
2 => {#355
+"id": "3"
+"name": "bar"
+"creation_date": "2014-07-23 07:27:18"
}
]

array:3 [
0 => array:3 [
"query" => "SELECT * FROM test"
"bindings" => []
"time" => 0.0
]
1 => array:3 [
"query" => "DELETE FROM test WHERE id = :id"
"bindings" => array:1 [
"id" => 1
]
"time" => 0.0
]
2 => array:3 [
"query" => "SELECT * FROM test"
"bindings" => []
"time" => 0.0
]
]
Used Versions
PHP 7.1, Zend 3.0, Symfony 3.2, Laravel 5.2, PHPUnit 5.6, Doctrine 2.6