function testAffectedRows() { $idList = implode(',', $this->_insertIntoPosts(10)); $sql = "DELETE FROM q_posts WHERE post_id IN ({$idList})"; $this->dbo->execute($sql); $affectedRows = $this->dbo->affectedRows(); $this->assertEquals(10, $affectedRows, '10 == $affectedRows'); }