_lang, $this->_test_module); $this->_old_label = $mod_strings[$this->_test_label]; $pref = '<script>'; $prepared_pref = to_html(remove_xss(from_html($pref))); $new_label = $prepared_pref . ' ' . $this->_old_label; // save the new label to the language file ParserLabel::addLabels($this->_lang, array($this->_test_label => $new_label), $this->_test_module); // read the language file to get the new value include("custom/modules/{$this->_test_module}/language/{$this->_lang}.lang.php"); $this->assertEquals($new_label, $mod_strings[$this->_test_label]); $this->assertNotEquals($pref . ' ' . $this->_old_label, $mod_strings[$this->_test_label]); } public function tearDown() { ParserLabel::addLabels($this->_lang, array($this->_test_label=>$this->_old_label), $this->_test_module); } }