Beispiel #1
0
 /**
  * Quote a string
  *
  * @param string $str the string to quote
  *
  * @return string
  */
 public function quote_string($str)
 {
     return $this->_adapter->quote_string($str);
 }
 /**
  * test string quoting
  */
 public function test_string_quoting()
 {
     $unquoted = "Hello Sam's";
     $quoted = "Hello Sam\\'s";
     $this->assertEquals($quoted, $this->adapter->quote_string($unquoted));
 }