public static function store(Connection $connection, $result)
{
$sql = "INSERT INTO tests (name, class, status, executed) VALUES (?, ?, ?, ?);";
$date = new DateTime();
foreach ($result['tests'] as $test) {
$stmt = $connection->prepare($sql);
$stmt->bindValue(1, $test['name']);
$stmt->bindValue(2, $test['class']);
$stmt->bindValue(3, $test['status']);
$stmt->bindValue(4, $date->format('Y-m-d H:i:s'));
$stmt->execute();
}
}