public function testAffectedRows() { $this->db->query("DELETE FROM test"); $this->assertEquals(2, $this->db->affectedRows()); }