assertEquals(isset($GLOBALS['egw_unset_vars']), $should_fail); } public function patternProvider() { return array( // pattern, true: should fail, false: should not fail Array('< script >alert(1)< / script >', true), Array('blah', true), Array('Click Me', true), // from https://www.acunetix.com/websitesecurity/cross-site-scripting/ Array('', true), Array('', true), Array('