示例#1
0
 public function testInjectionUpdate()
 {
     $query = new SDBStatement("UPDATE cars SET manufacturer = ? WHERE itemName() = ?");
     $query->bindValues(array('\'?\' ? \'red\'', '4'));
     $this->assertEquals(array('manufacturer' => '\'?\' ? \'red\''), $query->attributes());
 }