<?php time(): int
<?php $connection = app(Connection::class); foreach (range(1, 400) as $i) { $query = new QueryExecuted('query '.$i, [], time(), $connection); $recorder->record($query); }
<?php $recorder = new QueryRecorder($this->app, true); $connection = app(Connection::class); $query = new QueryExecuted('query 1', ['abc' => 123], time(), $connection); $recorder->record($query); $this->assertCount(1, $recorder->getQueries());
<?php $recorder = new QueryRecorder($this->app, false); $connection = app(Connection::class); $query = new QueryExecuted('query 1', ['abc' => 123], time(), $connection); $recorder->record($query); $this->assertCount(1, $recorder->getQueries());