/** * @covers Mage_Core_Helper_Abstract::quoteEscape */ public function testQuoteEscape() { $data = "Text with 'single' and \"double\" quotes"; $expected = array("Text with 'single' and "double" quotes", "Text with \\'single\\' and \\"double\\" quotes"); $this->assertEquals($expected[0], $this->_helper->quoteEscape($data)); $this->assertEquals($expected[1], $this->_helper->quoteEscape($data, true)); }