예제 #1
0
 public function quote($value)
 {
     $this->datas['quote'] = array('value' => $value);
     return parent::quote($value);
 }
예제 #2
0
 /**
  * test that quote() escapes a single-quote
  * character in a string.
  */
 public function testAdapterQuoteSingleQuote()
 {
     $string = "St John's Wort";
     $value = $this->object->quote($string);
     $this->assertEquals("'St John\\'s Wort'", $value);
 }