db)) { // In-memory databases will cease to exist as soon as the connection // is closed, which is...convenient as hell! $db = new \PDO('sqlite::memory:'); // Throw exceptions when things go awry. $db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); $this->db = new Connection($db, []); } } }