Ejemplo n.º 1
0
 private function escape()
 {
     $text = "tes't1";
     self::$connection->insert("value", "'" . self::$connection->getEscapedString($text) . "'");
     $thrown = false;
     try {
         self::$connection->insert("value", "'" . $text . "'");
     } catch (MysqltcsException $e) {
         $thrown = true;
     }
     $this->assertTrue($thrown);
 }