public function testJsQuoteEscape() { $data = array("Don't do that.", 'lost_key' => "Can't do that."); $expected = array("Don\\'t do that.", "Can\\'t do that."); $this->assertEquals($expected, $this->_helper->jsQuoteEscape($data)); $this->assertEquals($expected[0], $this->_helper->jsQuoteEscape($data[0])); }