public function quote($value) { $this->datas['quote'] = array('value' => $value); return parent::quote($value); }
/** * 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); }