public function testQuery_InsertQuery() { $this->db->setErrorHandler(function () { $this->fail(); }); $id = $this->db->query("INSERT INTO Artist ([name]) VALUES(?)", 'DDT'); $this->assertNotEmpty($id); $artist = $this->db->selectCell("SELECT name FROM Artist WHERE ArtistId = ?", $id); $this->assertEquals($artist, 'DDT'); }