/** * @test */ public function testStupidZeroBasedQuestionmarks() { // Insert $query = new Query("INSERT INTO `table` SET m_id = ?, m_test = ?, m_next = ?"); $query->bindValue(0, 1); $query->bindValue(1, 'test string with a random :m_next parameter in it.'); $query->bindValue(2, 'another parameter'); $expected = "INSERT INTO `table` SET m_id = 1, m_test = 'test string with a random :m_next parameter in it.', m_next = 'another parameter'"; $this->assertEquals($expected, $query->getParsedQuery()); }